Function: default
providers/auth0.default
â–¸ default(config
): OIDCConfig
<Auth0Profile
>
Add Auth0 login to your page.
Example​
import { Auth } from "@auth/core"
import Auth0 from "@auth/core/providers/auth0"
const request = new Request("https://example.com")
const resposne = await Auth(request, {
providers: [Auth0({ clientId: "", clientSecret: "", issuer: "" })],
})
Resources​
Notes​
By default, Auth.js assumes that the Auth0 provider is based on the OIDC specification.
tip
The Auth0 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​
Name | Type |
---|---|
config | OIDCUserConfig <Auth0Profile > |