You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: