Closed koufopoulosf closed 1 year ago
Hello!
The function you're looking for is named ParseV4Local
on a parser instance ๐
The parser is responsible for both decryption and validating the token against any loaded rules as an atomic operation (this is a design decision to guide against accidental use of a decrypted token before rules/claims have also been checked, like token expiry).
Hello,
Thank you very much for your reply!
I would highly appreciate it, if you could provide me a working example using the ParseV4Local๐.
Thank you very much once again!
Best Regards,
Filippos
Here's an example from the tests ๐
The non error returned value there is the parsed, decrypted, and validated token. For the local mode, make sure to use the same key (and implicit string if used) as was used to create the token.
Thank you very much for your reply once again!
Is there any chance that you are available for freelancing to review a code for user auth with pasetoV4 I am making with a friend?
Thank you๐
Also let me note that the hyperlink on the README.md isn't working:
Paseto is everything you love about JOSE (JWT, JWE, JWS) without any of the many design deficits that plague the JOSE standards.
Now the hyperlink is working. Thank you very much for your valuable help! Be well :)
Hello,
May I please ask you why the V4Decrypt is missing from the package? Specifically the local version.
I have some issues with finding it.
I would really appreciate your support on that.
Thank you very much for your valuable time.
Best Regards,
Filippos