Auth Module
1.0.0
1.0.0
  • README
  • docs
    • providers
      • GitHub
      • Google
      • Auth0
      • Laravel Passport
      • Facebook
    • Auth Module
    • Migration Guide
    • guide
      • Middleware
      • Providers
      • Setup
      • Schemes
    • recipes
      • Extending Auth plugin
    • api
      • API
      • options
      • storage
      • auth
    • schemes
      • Local
      • Oauth2
    • glossary
  • .github
    • ISSUE_TEMPLATE
  • CHANGELOG
Powered by GitBook
On this page
  • Usage
  • Obtaining client_id
  1. docs
  2. providers

Google

PreviousGitHubNextAuth0

Last updated 5 years ago

Usage

auth: {
  strategies: {
      google: {
        client_id: '...'
      },
  }
}

Anywhere in your application logic:

this.$auth.loginWith('google')

💁 This provider is based on and supports all scheme options.

Obtaining client_id

This option is REQUIRED. To obtain one, create your app in , Create a new project and from Credentials tab, create a new "Oauth Client ID".

Source Code
oauth2 scheme
Google API Console