Interface RefreshingAuthProviderConfig

Configuration for RefreshingAuthProvider.

interface RefreshingAuthProviderConfig {
    clientId: string;
    clientSecret: string;
    redirectUri?: string;
    scopes?: string[];
}

Properties

clientId: string

The Donation Alerts client ID.

clientSecret: string

The Donation Alerts client secret.

This is required to refresh expired tokens for any user. If you do not need token refreshing, you may opt for StaticAuthProvider.

redirectUri?: string

A redirect URI configured in your application settings.

This is required only if you intend to use the RefreshingAuthProvider#addUserForCode method.

scopes?: string[]

The list of scopes that all registering tokens must include.

If scopes are specified for the token being registered, it will be compared against the scopes from this option. If the token misses any scope from this list then MissingScopeError exception will be thrown.