Every OAuth scope the Vairified authorization server accepts.
Declaring this as a string union (rather than a free-form string) lets TypeScript catch typos at authoring time:
string
const scopes: OAuthScope[] = ['user:profile:read', 'user:rating:read']; // okconst bad: OAuthScope[] = ['user:profile:read', 'rating']; // type error Copy
const scopes: OAuthScope[] = ['user:profile:read', 'user:rating:read']; // okconst bad: OAuthScope[] = ['user:profile:read', 'rating']; // type error
Every OAuth scope the Vairified authorization server accepts.
Declaring this as a string union (rather than a free-form
string) lets TypeScript catch typos at authoring time: