Open hazcod opened 3 years ago
If you have a public token, try passing in purpose='public' to the paseto.parse
call. If you pass "local", it will be expecting a local type token.
Not sure if you had any luck with this. I'm guessing this is because we don't have messages for some of these exceptions.
I've added this issue to track this: https://github.com/rlittlefield/pypaseto/issues/18
If you are having trouble figuring out which exception before I get a fix in for this, you can to str(type(e)), which should give you the name of the exception class.
Hi! Thank you for the library.
I am trying to parse a public (v2) paseto token generated by https://github.com/o1egl/paseto . However, an empty exception is returned when parsing.
Returns:
token decrypt failed:
.Generator: