Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>djwt.decode

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function djwt.decode
import { djwt } from "https://deno.land/x/hex@0.6.5/src/fw/service/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]