Skip to content

Add support for version detection when decoding #4

@daviddesmet

Description

@daviddesmet

Currently you need to specify the version when decoding.

It will be nice to omit this and have the functionality to auto-detect it. Shouldn't be an issue since it's specified on the header, however, the library is considering the ability to support custom protocols by just implementing the IPasetoProtocol interface. Even though user-defined homemade protocols are discouraged by Paseto but are allowed as long as the reserved official naming convention is not used. Read here for more information.

Anyway, the library could read the header version and try to find a match using the Version property from the registered protocols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpinnedThis issue will never be considered stale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions