Content from Web3Auth Community
This topic was originally posted by shahbaz on 3/7/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
“Error occurred while verifying params unable to verify jwt token” error could be because of the following reasons:
- The verifier for your OpenLoginAdapter might be wrong. Check to make sure the
verifierfield is set correctly. - The JWT is not signed with the correct key(JWK).
- The JWKS endpoint is not reachable or doesn’t return a valid JWK that was used to sign the JWT.
- The JWKS endpoint is incorrect on the Web3Auth Dashboard. Double-check to confirm the correct JWKS endpoint.
- The JWKS is missing the
kidfield. - The
kidpresent in the JWT header is not present in the JWKS.
sample jwks:
{
"keys": [
{
"kty": "RSA",
"e": "AQAB",
"use": "sig",
"kid": "YOUR-KID", // <-- This is the kid.
"n": "YOUR-N",
"alg": "RS256" // <-- This is the algorithm.
}
]
}
sample jwks endpoint: https://www.googleapis.com/oauth2/v3/certs
