MicahParks/keyfunc

Question: Why is there an ErrMultipleJWKSSize Error

Robbilie opened this issue · 3 comments

I am curious why there is such an error. I built an application that accepts one or multiple jwks urls and I need to build around this due to this error :/

Thank you for making this issue, @Robbilie.

My initial thought is there is a technical reason I made this limitation. Perhaps I instead made this decision to discourage people from using MultipleJWKS because it's less efficient, but the difference shouldn't be noticeable. I'm reading through the code now. If there's no technical reason for this limitation, I may change it from 2 to 1.

It looks like there is no technical limitation. @Robbilie, the behavior has changed to what you expect in release v2.0.2.

Much appreciated, one less if statement in my code then :P