You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be reasonable to support decoding using a lookup_key(&str) -> Option<&DecodingKey> function? This would allow the decoding to not have to create a validation per known key with varying issuer validation.
Or perhaps this is way off target with how JWTs are meant to be used? But it feels weird to have to "guess" at which decoding key to use if it is based on the iss field.
I took a peek at the code and it would require a bit of surgery and "stuttering" of decoding to extract out just the iss field before moving onto validation.