function jwtVerify
Verifies the JWT format (to be a JWS Compact format), verifies the JWS signature, validates the JWT Claims Set.
Type Parameters
🔗
PayloadType = JWTPayload
Parameters
🔗
key: KeyLike | Uint8Array
Key to verify the JWT with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jws-alg.
Return Type
🔗
Promise<JWTVerifyResult<PayloadType>>
Type Parameters
🔗
PayloadType = JWTPayload
🔗
KeyLikeType extends KeyLike = KeyLike
Parameters
🔗
getKey: JWTVerifyGetKey
Function resolving a key to verify the JWT with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jws-alg.
Return Type
🔗
Promise<JWTVerifyResult<PayloadType> & ResolvedKey<KeyLikeType>>