Documentation
https://developers.google.com/identity/protocols/oauth2
Configuration
https://console.developers.google.com/apis/credentials
Example
import Providers from `next-auth/providers`
...
providers: [
Providers.Google({
clientId: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET
})
]
...
warning
Unlike most other providers, Google only Provide the Refresh Token on first sign in.
tip
Google also return an email_verified
boolean property in the OAuth profile.