Closed ctron closed 3 years ago
I think it is an issue, which I introduced during library version upgrade, we should introduce just normal error to not break everything in panic.
Awesome! Thank you for the quick fix and release!
You are welcome :)
To me it looks like
decode_token
may panic, due to the use ofunimplemented!
.So if a user provided token contains a algorithm which is not supported, that could let the function panic.
I think handling the situation gracefully, with a proper error return, would be better.