Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

decode

import { decode } from "https://raw.githubusercontent.com/timonson/djwt/master/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.

function decode<PayloadType extends Payload | unknown = unknown>(jwt: string): [unknown, PayloadType, Uint8Array];
§
decode<PayloadType extends Payload | unknown = unknown>(jwt: string): [unknown, PayloadType, Uint8Array]
[src]

§Type Parameters

§
PayloadType extends Payload | unknown = unknown
[src]

§Parameters

§
jwt: string
[src]

§Return Type

§
[unknown, PayloadType, Uint8Array]
[src]