GoogleProvider
Reference doc for the `GoogleProvider`.
Use this provider to authenticate with Google. Supports both OAuth2 and OIDC.
Using OAuth
Using OIDC
Methods
GoogleOidcProvider
Parameters
The config for the provider.config
GoogleOidcConfig
Returns Provider
Create a Google OIDC provider.
This is useful if you just want to verify the user’s email address.
GoogleProvider
Parameters
The config for the provider.config
GoogleConfig
Returns Provider
Create a Google OAuth2 provider.
GoogleConfig
-
clientID
string
-
clientSecret
string
-
query?
Record
<
string
,string
>
-
scopes
string
[]
GoogleConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
GoogleConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
GoogleConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
GoogleConfig.scopes
Type string
[]
A list of OAuth scopes that you want to request.
GoogleOidcConfig
GoogleOidcConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
GoogleOidcConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
GoogleOidcConfig.scopes?
Type string
[]
A list of OIDC scopes that you want to request.