Skip to content

createCustomToken generates invalid Token #16

@markbreuss

Description

@markbreuss

When i send the token back to the client and trie the LoginWithToken method I get:
error: [firebase_auth/invalid-custom-token] The custom token format is incorrect. Please check the documentation.

If i paste the token into jwt.io i get the following warning (although I can see the correct payload of the token.
Warning: Looks like your JWT signature is not encoded correctly using base64url (https://tools.ietf.org/html/rfc4648#section-5). Note that padding ("=") must be omitted as per https://tools.ietf.org/html/rfc7515#section-2

I did double check that the projects match and got it to work with the python admin sdk.

Any Ideas?

Thanks Mark

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions