firebase / firebase/snippets-web

How to use Google Access Token to call Google Drive API

Open
#218 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
802
Forks
285
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.