firebase / firebase/snippets-web
How to use Google Access Token to call Google Drive API
- 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
Assessment
This issue has not been assessed yet.