Interface RefreshingAuthProviderConfig

Configuration for RefreshingAuthProvider.

Hierarchy

  • RefreshingAuthProviderConfig

Properties

clientId: string

The Donation Alerts client ID.

clientSecret: string

The Donation Alerts client secret.

Remarks

In order to refresh the access token for a user, you must provide the application client secret.

That's why it's not safe to use RefreshingAuthProvider on the frontend, because it will leak application client secret.

redirectUri?: string

A valid redirect URI for your application.

Only required if you intend to use addUserForCode.

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.

Generated using TypeDoc