providers/passage
default()β
default(
config
):OAuthConfig
<PassageProfile
>
Add Passage login to your page.
Setupβ
Callback URLβ
https://example.com/api/auth/callback/passage
Configurationβ
import Auth from "@auth/core"
import Passage from "@auth/core/providers/passage"
const request = new Request(origin)
const response = await Auth(request, {
providers: [Passage({ clientId: PASSAGE_ID, clientSecret: PASSAGE_SECRET, issuer: PASSAGE_ISSUER })],
})
Resourcesβ
Notesβ
By default, Auth.js assumes that the Passage provider is based on the Open ID Connect specification.
The Passage provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.
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.
Parametersβ
βͺ config: OAuthUserConfig
< PassageProfile
>
Returnsβ
OAuthConfig
< PassageProfile
>
PassageProfileβ
Seeβ
Propertiesβ
emailβ
email:
string
The user's email address
email_verifiedβ
email_verified:
boolean
Whether the user has verified their email address
phoneβ
phone:
string
The user's phone number
phone_number_verifiedβ
phone_number_verified:
boolean
Whether the user has verified their phone number
subβ
sub:
string
Unique identifer in Passage for the user