Skip to content

How to use Google Access Token to call Google Drive API #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anarnoli opened this issue Aug 9, 2021 · 2 comments
Open

How to use Google Access Token to call Google Drive API #218

anarnoli opened this issue Aug 9, 2021 · 2 comments

Comments

@anarnoli
Copy link

anarnoli commented Aug 9, 2021

I’m using Firebase Authentication mechanism and the scope I have provided https://www.googleapis.com/auth/drive

While running application, it asked for user login along with user's consent for Google drive access. After successful authentication it returns a Firebase Id Token.

In the next step application requires to access user's Google Drive. As I know Google Drive API requires OAuth Access token while application has Firebase Token.

https://www.googleapis.com/drive/v3/files

My questions is: How to generate OAuth Access token which is capable to access user's Google drive? OR Is there any alternate solution for this?

@Doppelklick
Copy link

@anarnoli did you solve this? I'm looking for a solution to get the oauth token of a firebase authenticated user, too.

@anarnoli
Copy link
Author

@Doppelklick I'm using Firebase Plugin in NativeScript. Plugin returns access token which I'm using to call Google Drive APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants