Connect your Vue3 application with google auth module
npm install vue3-google-authAn utilities to help you to connect in your application with google oauth2 service
It's an adaption for Vue3 of vue-google-oauth2 plugin from guruahn
Installation with npm \npm add vue3-google-auth
On your main file
``javascript
import gAuth from 'vue3-google-auth';
const $gAuth = gAuth.createGAuth({
clientId: YOUR_CLIENT_ID
scope: YOUR_SCOPE,
prompt: YOUR_PROMPT,
});
app.use($gAuth)
`
#### Composition API
You can load gAuth instance in setup function by using useGAuth()
`javascript`
import gAuth from 'vue3-google-auth'
const $gAuth = gAuth.useGAuth()
#### Without composition API
You can access instance directly by using this.$gAuth`