devbaji / vue3-google-login

Add Sign In With Google feature to your Vue 3 application
https://github.com/devbaji/vue3-google-login/
MIT License
202 stars 30 forks source link

can vue3-google-login be used to access google drive api? #31

Closed vicebp closed 1 year ago

vicebp commented 1 year ago

I am using vue3-google-login to login to my app, can it be used to access google drive api?

devbaji commented 1 year ago

@vicebp No, this is only meant for implementing log-in and sign-up flows using Google Identity Services with the help of Google 3P Authorization JavaScript Library

lucasow commented 1 year ago

Sry for reopening closed thread. But I think you can achieve your goal with googleTokenLogin:

import { googleTokenLogin } from "vue3-google-login" googleTokenLogin() .then((response)=>{ let token = response.access_token // this token you can use to call Google Drive API })

But formally yobaji has right. You cannot use this library to call Google API.