Skip to content

.decode returns null when token has a = sign #607

@jmansor

Description

@jmansor

Hi!

I've got a JWT string (sadly cannot share it) that contains an = sign. When I pass it to .decode it returns null. I've tried a few other decoding tools and the same JWT string is correctly parsed. Weird thing is that, if I remove the = sign, .decode parses it correctly but then the string is not valid when considering the secret. Is this a bug? what am I missing?

Using version 8.4.0.

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