Closed Lweb closed 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.
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.