mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* added mattermost provider * upaded docs and removed callback uri * username -> name * updated types to match other providers * cleanup * add logos * style sign-in button * add JSDoc to profile * add JSDoc comments * correction Co-authored-by: Balázs Orbán <info@balazsorban.com> delete mattermost icons
827 B
827 B
id, title
| id | title |
|---|---|
| mattermost | Mattermost |
Documentation
https://developers.mattermost.com/integrate/apps/authentication/oauth2
Configuration
http://my-cool-server.cloud.mattermost.com/mycoolteam/integrations/oauth2-apps
Options
The Mattermost provider comes with a set of default options:
You can override any of the options to suit your own use case.
Example
import Mattermost from "@auth/core/providers/mattermost";
...
providers: [
Mattermost({
// The base url of your Mattermost instance. e.g https://my-cool-server.cloud.mattermost.com
clientId: env.MATTERMOST_ID,
clientSecret: env.MATTERMOST_SECRET,
issuer: env.MATTERMOST_ISSUER,
})
]
...