Skip to main content
Go to Latest
function jwtDecode
import { jwtDecode } from "https://deno.land/x/darkflare@v5.0.0/jwt/mod.ts";

Returns the payload without verifying the integrity of the token. Please use jwt.verify() first to keep your application secure!

Parameters

token: string

The token string generated by jwt.sign().

Returns

Returns an object containing header and payload.