Keats / jsonwebtoken

JWT lib in rust
MIT License
1.69k stars 271 forks source link

add verify_sig fn #161

Closed superstator closed 3 years ago

superstator commented 3 years ago

For #156. I'm essentially just pulling the signature verification steps into their own function that can be called independently, and then having decode call that new function rather than duplicating everything. I'm certainly not set on verify_sig as a function name, if you have suggestions.

Keats commented 3 years ago

Can you base your PR on https://github.com/Keats/jsonwebtoken/pull/160 ? There are some changes around those functions in it.

superstator commented 3 years ago

Like that? Or would you rather I actually merge next on my end?