import { jwtVerify } from "https://deno.land/x/jose@v5.2.0/jwt/verify.ts";
Verifies the JWT format (to be a JWS Compact format), verifies the JWS signature, validates the JWT Claims Set.
Type Parameters
optional
PayloadType = JWTPayloadParameters
key: KeyLike | Uint8Array
Key to verify the JWT with. See Algorithm Key Requirements.
optional
options: JWTVerifyOptionsJWT Decryption and JWT Claims Set validation options.
Returns
Promise<JWTVerifyResult<PayloadType>>
Type Parameters
optional
PayloadType = JWTPayloadParameters
getKey: JWTVerifyGetKey
Function resolving a key to verify the JWT with. See Algorithm Key Requirements.
optional
options: JWTVerifyOptionsJWT Decryption and JWT Claims Set validation options.
Returns
Promise<JWTVerifyResult<PayloadType> & ResolvedKey<KeyLikeType>>