Files
archived-next-auth/docs/snippets/oauth-docs.md

1.3 KiB

Add $1 login to your page.

Example

@example

import Auth from "@auth/core"
import { $1 } from "@auth/core/providers/$2"

const request = new Request("https://example.com")
const resposne = await AuthHandler(request, {
  providers: [$1({ clientId: "", clientSecret: "" })],
})

Resources

@see Link 1


Notes

By default, Auth.js assumes that the $1 provider is based on the OAuth 2 specification.

:::tip

The $1 provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.

:::

:::info Disclaimer

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.

:::