Skip to content

Auth: GetToken() generates invalid token (Firebase ID token has invalid signature) #3

@eliezedeck

Description

@eliezedeck

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions