Menu
NextAuth LogoNextAuth.jsDocumentation
npmGitHub
NextAuth LogoNextAuth.js
  • Documentation
  • npm
  • GitHub
  • Getting Started
    • Introduction
    • Example
    • Client API
    • REST API
  • Configuration
    • Options
    • Providers
    • Databases
    • Pages
    • Callbacks
    • Events
  • Providers
    • Apple
    • Auth0
    • Battle.net
    • Box
    • Amazon Cognito
    • Discord
    • Email
    • Credentials
    • Facebook
    • GitHub
    • GitLab
    • Google
    • IdentityServer4
    • LinkedIn
    • Mixer
    • Okta
    • Slack
    • Spotify
    • Twitch
    • Twitter
    • Yandex
  • Models & Schemas
    • Models
    • MySQL
    • Postgres
    • MongoDB
    • Database Adapters
  • Tutorials
    • Testing

Google

#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
})
]
...
Edit this page
Previous
« GitLab
Next
IdentityServer4 »
  • Documentation
  • Configuration
  • Example

About NextAuth.js

  • Introduction
  • Contributors

Download

  • GitHub
  • NPM

Acknowledgements

  • Docusaurus v2 🦖
  • Images by unDraw
NextAuth.js © Iain Collins 2020