Comment mention both x5c and x5u being defined when they are not
https://github.com/SkyLothar/lua-resty-jwt/blob/ee1d024071f872e2b5a66eaaf9aeaf86c5bab3ed/lib/resty/jwt.lua#L601-L606
In the code above, the comment talks about not handling the case of both x5c and x5u are defined. However, it is possible to get that far down in the code path if both x5c and x5u are nil. Is that supposed to be a different case that should be handled?
According to RFC 7515, both x5c and x5u as header parameters are optional it seems...?
Alternatively, perhaps the issue is that I called jwt:set_trusted_certs_file(...) and/or jwt:set_x5u_content_retriever(...) when I don't actually need to (as my JWT's header doesn't contain an x5c or an x5u property)?
If that's the case, could the error message be improved to make this clearer and/or some comments get inlined here to clarify this?
Sorry, I'm new to all this JWT stuff so I could just be calling the APIs wrong...