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

x/dtils/deps.ts>jwtCore.decode

The best unofficial library of utilities for Deno applications
Go to Latest
function jwtCore.decode
import { jwtCore } from "https://deno.land/x/dtils@2.5.0/deps.ts";
const { decode } = jwtCore;

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]