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
The Firebase\JWT\JWK class checks if the JWK contains the "d" key to check for private keys (which are not supported). However, some vendors pass this key as null in the JWK even though it doesn't contain a private key. Now I have to unset those keys before passing the JWK to the parseKeySet function.
I would suggest checking if it's present and not null before throwing this exception.
if (\array_key_exists('d', $jwk)) {
thrownewUnexpectedValueException('RSA private keys are not supported');
}
to
if (!empty($jwk['d'])) {
thrownewUnexpectedValueException('RSA private keys are not supported');
}