import { djwt } from "https://deno.land/x/live@1.67.9/commons/jwt/deps.ts";
const { verify } = djwt;
Takes jwt, CryptoKey
and VerifyOptions
and returns the Payload
of the
jwt if the jwt is valid. Otherwise it throws an Error
.
Type Parameters
PayloadType extends Payload
Returns
Promise<PayloadType>