Function: default
providers/mattermost.default
â–¸ default<P
>(config
): OAuthConfig
<P
>
To create your Mattermost OAuth2 app visit http://<your Mattermost instance url>
/<your team>
/integrations/oauth2-apps
Example​
import Mattermost from "@auth/core/providers/mattermost";
...
providers: [
Mattermost({
clientId: env.MATTERMOST_ID,
clientSecret: env.MATTERMOST_SECRET,
// The base url of your Mattermost instance. e.g https://my-cool-server.cloud.mattermost.com
issuer: env.MATTERMOST_ISSUER,
})
]
...
danger
The Mattermost provider requires the issuer
option to be set. This is the base url of your Mattermost instance. e.g https://my-cool-server.cloud.mattermost.com
Type parameters​
Name | Type |
---|---|
P | extends MattermostProfile |
Parameters​
Name | Type |
---|---|
config | Omit <Partial <OAuthConfig <P >>, "type" | "options" > & Required <Pick <OAuthConfig <P >, "clientId" | "clientSecret" >> & { issuer : string } |
Returns​
OAuthConfig
<P
>