import { djwt } from "https://deno.land/x/live@1.67.9/commons/jwt/deps.ts";
const { decode } = djwt;
Takes a jwt
and returns a 3-tuple [unknown, unknown, Uint8Array]
if the
jwt has a valid serialization. Otherwise it throws an Error
. This function
does not verify the digital signature.
Type Parameters
optional
PayloadType extends Payload | unknown = unknownReturns
[unknown, PayloadType, Uint8Array]