You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google actually responds with the ID token in the body's credential field and replacing id_token with credential in the above line makes my auth flow work, otherwise I get an error about a missing ID token.
Is this a bug in the library or in my code?
Admittedly I am using nestjs with its jwt and passport modules which adds a bunch of moving parts to the equation compared to using plain express and passport but I think I might be onto something here.
Sorry for not being able to share my backend code but I'm pretty sure it doesn't matter here - regardless of how the backend is setup the above HTML will result in google responding with a credential field, not id_token.
The text was updated successfully, but these errors were encountered:
This is the relevant line:
passport-google-verify-token/src/strategy.ts
Line 114 in 575f909
Google actually responds with the ID token in the body's
credential
field and replacingid_token
withcredential
in the above line makes my auth flow work, otherwise I get an error about a missing ID token.Is this a bug in the library or in my code?
Admittedly I am using nestjs with its jwt and passport modules which adds a bunch of moving parts to the equation compared to using plain express and passport but I think I might be onto something here.
Here's the HTML I'm using to test this out:
Sorry for not being able to share my backend code but I'm pretty sure it doesn't matter here - regardless of how the backend is setup the above HTML will result in google responding with a
credential
field, notid_token
.The text was updated successfully, but these errors were encountered: