providers/cognito
default()β
default<P>(options): OAuthConfig< P >
Add Cognito login to your page.
Setupβ
Callback URLβ
https://example.com/api/auth/callback/cognito
Configurationβ
import Auth from "@auth/core"
import Cognito from "@auth/core/providers/cognito"
const request = new Request(origin)
const response = await Auth(request, {
providers: [Cognito({ clientId: COGNITO_CLIENT_ID, clientSecret: COGNITO_CLIENT_SECRET, issuer: COGNITO_ISSUER })],
})