Skip to content
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

Using it with other google api #70

Open
pranshuchittora opened this issue Aug 4, 2020 · 4 comments
Open

Using it with other google api #70

pranshuchittora opened this issue Aug 4, 2020 · 4 comments

Comments

@pranshuchittora
Copy link

What's the ideal way of calling the other google API with the same auth.
Like making a request to the Google Drive API, etc.

@WORMSS
Copy link

WORMSS commented Nov 20, 2020

In the serialise/deserialise functions, you will be given a token that represents the user.
You should then be able to request access to those APIs from that token (the user will have to additionally grant your app access to the APIs)

@Ritish-Madan
Copy link

@pranshuchittora Did you get any solution for the same?

@pranshuchittora
Copy link
Author

@pranshuchittora Did you get any solution for the same?

Scraped that project 😄

@Ritish-Madan
Copy link

@pranshuchittora Try this link

https://dev.to/aidanlovelace/how-to-setup-google-oauth2-login-with-express-2d30

They have got the things covered. Well passport-google-oauth has hardcoded the data to be sent to profile. I found with the googleapis to fetch the same data.

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

3 participants