Usage
auth: {
strategies: {
google: {
clientId: '...'
},
}
}
Anywhere in your application logic:
this.$auth.loginWith('google')
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.
clientId
Obtaining 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".