paragonie / paseto

Platform-Agnostic Security Tokens
https://paseto.io
Other
3.25k stars 108 forks source link

Fix Building and Verifying PASTs example in documentation #30

Closed Edwin-Luijten closed 6 years ago

Edwin-Luijten commented 6 years ago

Move setClaims() above setExpiration() in Building and Verifying PASTs example. If using setClaims() after a method that sets a claim, it will overwrite previous set claims.

jdreesen commented 6 years ago

If using setClaims() after a method that sets a claim, it will overwrite previous set claims.

I don't think this is true anymore with f3f503657bbb48b2268c037f9ffec5485edd91c7.

Edwin-Luijten commented 6 years ago

Your right =). It's fixed on master. Then of course this pull can be closed/removed.