CognitoProvider
Reference doc for the `CognitoProvider`.
Use this provider to authenticate with a Cognito OAuth endpoint.
Methods
CognitoProvider
Parameters
The config for the provider.config
CognitoConfig
Returns Provider
Create a Cognito OAuth2 provider.
CognitoConfig
CognitoConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
CognitoConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
CognitoConfig.domain
Type string
The domain of the Cognito User Pool.
CognitoConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
CognitoConfig.region
Type string
The region the Cognito User Pool is in.
CognitoConfig.scopes
Type string
[]
A list of OAuth scopes that you want to request.