Closed sabify closed 3 years ago
Would it be more convenient to have a bridge structure to store DecodingKey and Validation to validate tokens/claims?
DecodingKey
Validation
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.
decode
src/validation.rs
Would it be more convenient to have a bridge structure to store
DecodingKey
andValidation
to validate tokens/claims?