-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Description
This error is likely to be related to https://stackoverflow.com/questions/44014877/firebase-id-token-has-invalid-signature in 2017.
- I am using the C++ client SDK, targetting Android platform
- I properly get a token that contains good information (when checked with https://jwt.io/)
- This token's provider is Google Sign In
- As reported on the above StackOverflow question, Email & Password provider generates a proper token
- I have an HTTPS Cloud Function that verifies this token using
admin.auth().verifyIdToken()
- An exception is generated when I verify any token from the client, with the following message:
Firebase ID token has invalid signature. See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token.
I have tried to manually verify the token, and I could not verify the token to match any keys I could find. I have tried the following keys:
- https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com
- https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com
I believe this is a bug, not a temporary issue. And I also believe this is a supported use-case, so it needs to be fixed. As reported by the StackOverflow question, this also applies to Unity.
Thanks.