DiscordProvider
Reference doc for the `DiscordProvider`.
Use this provider to authenticate with Discord.
Methods
DiscordProvider
Parameters
The config for the provider.config
DiscordConfig
Returns Provider
Create a Discord OAuth2 provider.
DiscordConfig
-
clientID
string
-
clientSecret
string
-
query?
Record
<
string
,string
>
-
scopes
string
[]
DiscordConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
DiscordConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
DiscordConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
DiscordConfig.scopes
Type string
[]
A list of OAuth scopes that you want to request.