Source Code


auth: {
  strategies: {
    google: {
      clientId: '...'

Anywhere in your application logic:


Additional arguments can be passed through to Google as the params key of the second argument:

this.$auth.loginWith('google', { params: { prompt: "select_account" } })

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

Obtaining clientId

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

Edit this page on GitHub Updated at Wed, Sep 22, 2021