Skip to content

Invalid JWT token results in error object in callback as string rather than object #43

@JayCarney

Description

@JayCarney

Not sure if this extends to other error cases, but when a malformed Bearer token is sent to .validate(token, callback), the error object passed to the callback is a string value of Not a valid JWT token

expected behaviour:

  • Invalid JWT token values result in an error object with keys name and message like other error objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions