Keats / jsonwebtoken

JWT lib in rust
MIT License
1.64k stars 260 forks source link

Get claims without verify. #262

Closed selmant closed 2 years ago

selmant commented 2 years ago

I have to use some of the fields for decide which key I will use. Can we provide simple API for get claims without verify?

Keats commented 2 years ago

Decode the JKT using https://docs.rs/jsonwebtoken/latest/jsonwebtoken/struct.Validation.html#method.insecure_disable_signature_validation set for the validation.