Skip to content

Errors should be separately typed and documented #22

Open
@typerandom

Description

@typerandom

Errors are currently only identifiable as JwtError or JwtParseError. We should create specific errors for each error type so that they can be easily handled. Also, there's currently no documentation for the errors that the library can throw. We need to add that.

E.g. instead of returning:

new JwtParseError(properties.errors.SIGNATURE_ALGORITHM_MISMTACH, jwtString, header, body);

We should return:

new SignatureAlgorithmMismatchJwtParseError(jwtString, header, body);

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