SlackProvider
Reference doc for the `SlackProvider`.
Use this provider to authenticate with Slack.
Methods
SlackProvider
Parameters
The config for the provider.config
SlackConfig
Returns Provider
Creates a Slack OAuth2 provider.
SlackConfig
-
clientID
string
-
clientSecret
string
-
query?
Record
<
string
,string
>
-
scopes
(
“
email
”
|
“
profile
”
|
“
openid
”
)[]
-
team
string
SlackConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
SlackConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
SlackConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
SlackConfig.scopes
Type (
“
email
”
|
“
profile
”
|
“
openid
”
)[]
The scopes to request from the user.
Scope | Description |
---|---|
email | Grants permission to access the user’s email address. |
profile | Grants permission to access the user’s profile information. |
openid | Grants permission to use OpenID Connect to verify the user’s identity. |
SlackConfig.team
Type string
The workspace the user is intending to authenticate.
If that workspace has been previously authenticated, the user will be signed in directly, bypassing the consent screen.