Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function djwt.decode
import { djwt } from "https://deno.land/x/fathym_everything_as_code@v0.0.351/src/src.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.

Parameters

jwt: string

Returns

[unknown, unknown, Uint8Array]