← Back to index
function jwtVerify

Verifies the JWT format (to be a JWS Compact format), verifies the JWS signature, validates the JWT Claims Set.

Parameters

🔗
jwt: string | Uint8Array

JSON Web Token value (encoded as JWS).

🔗
key: KeyLike | Uint8Array

Key to verify the JWT with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jws-alg.

🔗
options: JWTVerifyOptions

JWT Decryption and JWT Claims Set validation options.

Type Parameters

🔗
PayloadType = JWTPayload
🔗
KeyLikeType extends KeyLike = KeyLike

Parameters

🔗
jwt: string | Uint8Array

JSON Web Token value (encoded as JWS).

🔗
getKey: JWTVerifyGetKey

Function resolving a key to verify the JWT with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jws-alg.

🔗
options: JWTVerifyOptions

JWT Decryption and JWT Claims Set validation options.