sjudson / paseto.js

PASETO: Platform-Agnostic Security Tokens
MIT License
269 stars 16 forks source link

Fix protocol check #18

Closed mdimas closed 5 years ago

mdimas commented 5 years ago

The comparison is currently checking the function protocol against V2 instead of the result of calling protocol().

sjudson commented 5 years ago

This looks like a good fix but the tests are failing. If you can take a look at that and get it passing, I'll merge - I'm fine with you referencing self._protocol directly as well if necessary. Thanks a lot.