Skip to main content
Module

x/djwt/mod.ts>decode

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
Very Popular
Go to Latest
function decode
import { decode } from "https://deno.land/x/djwt@v2.8/mod.ts";

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]