Keats / jsonwebtoken

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

FEATURE: A Validator Struct Bridge #177

Closed sabify closed 3 years ago

sabify commented 3 years ago

Would it be more convenient to have a bridge structure to store DecodingKey and Validation to validate tokens/claims?

Keats commented 3 years ago

I don't think this is bringing any value, you can just create a Validation object next to the DecodingKey and use it on a decode without adding any layer. The src/validation.rs should be its own PR though.