providers/atlassian
default()β
default<
P
>(options
):OAuthConfig
<P
>
Setupβ
Callback URLβ
https://example.com/api/auth/callback/atlassian
Configurationβ
Import the provider and configure it in your Auth.js initialization file:
import NextAuth from "next-auth"
import AtlassianProvider from "next-auth/providers/atlassian"
export default NextAuth({
providers: [
AtlassianProvider({
clientId: process.env.ATLASSIAN_ID,
clientSecret: process.env.ATLASSIAN_SECRET,
}),
],
})
Resourcesβ
Notesβ
The Atlassian provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.
Helpβ
If you think you found a bug in the default configuration, you can open an issue.
Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.
Type parametersβ
βͺ P extends AtlassianProfile
Parametersβ
βͺ options: OAuthUserConfig
< P
>
Returnsβ
OAuthConfig
< P
>
AtlassianProfileβ
The returned user profile from Atlassian when using the profile callback.
Extendsβ
Record
<string
,any
>
Propertiesβ
account_idβ
account_id:
string
The user's atlassian account ID
emailβ
email:
string
The user's email
nameβ
name:
string
The user name
pictureβ
picture:
string
The user's profile picture