Keats / jsonwebtoken

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

Multiple algorithm families in Validation #251

Closed Lweb closed 2 years ago

Lweb commented 2 years ago

The 'decode' method always returns an InvalidAlgorithm error if there are multiple algorithm families in Validation, according to this part of the code:

https://github.com/Keats/jsonwebtoken/blob/master/src/decoding.rs#L159-L165

I wonder if this is expected since there are no constraints to ensure that Validation only contains one algorithm family.