Closed aidantwoods closed 6 years ago
I think it's a matter of me updating one but not the other. Good catch. :)
I'll have this fixed tonight.
https://github.com/paragonie/paseto/commit/d2f8902738486d1308a09197202be36c4d4ff6f8 -- I included a unit test so we can copy/paste tokens and then verify their correctness if the README is ever changed.
Good call on adding the unit tests too 👍
So I thought I'd add an example from the readme to my test suite, and it turns out there are some typos (unless of course my implementation is somehow completing words and changing a year ;p)
I think
"exp":
should be"expires":
and the year should be2019
instead of2039
.(correct example)
I would have opened this as a PR, but I wanted to check whether the second example also has the same problem. It appears to, but I can't conclude this because there isn't a public key available to verify the message ;-) (this is a request to add the public key to the readme)