Closed rebootcode closed 5 years ago
I have my token, symmetric key and footer string passed
v2 := paseto.NewV2() err := v2.Decrypt(token, symmetricKey, &newJSONToken, &newFooter)
But how do I verify data?
I found there is newJSONToken.Validate() function which basically returns an error if there is any.
newJSONToken.Validate()
I have a couple of question for this library:
Thanks
Also asked here - https://stackoverflow.com/questions/57048911/can-token-generated-using-paseto-token-be-decrypted-and-viewed-like-jwt-tok
I have my token, symmetric key and footer string passed
But how do I verify data?
I found there is
newJSONToken.Validate()
function which basically returns an error if there is any.I have a couple of question for this library:
Thanks