-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or requestpinnedThis issue will never be considered staleThis issue will never be considered stale
Description
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.
mokirchen
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpinnedThis issue will never be considered staleThis issue will never be considered stale