jmreyes / passport-google-id-token

Google ID token authentication strategy for Passport and Node.js.
MIT License
44 stars 22 forks source link

Question: How to Use Access Token? #12

Open JessRascal opened 7 years ago

JessRascal commented 7 years ago

Hey,

I've got the strategy working nicely using the token_id (cheers by the way) but I saw in passing comments about using the access_token however when I try to pass this in then it fails authentication.

Is there some configuration I need to set for this? Or should I just be able to pass the access_token in via a POST in the same way as the token_id?

Cheers Jess

jmreyes commented 7 years ago

Hi Jess, both id_token and access_token should work the same way. In fact, I double-checked the tests and even though I realized one of them is wrong (will fix on next release, thanks for that!), it's behaving as expected when fixed in any case. Maybe you could provide me with some info or code snippet to try to reproduce the problem.