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

Payload

import type { Payload } from "https://raw.githubusercontent.com/timonson/djwt/master/mod.ts";

JWT §1: JWTs encode claims to be transmitted as a JSON [RFC7159] object [...]. JWT §4.1: The following Claim Names are registered in the IANA "JSON Web Token Claims" registry established by Section 10.1. None of the claims defined below are intended to be mandatory to use or implement in all cases, but rather they provide a starting point for a set of useful, interoperable claims. Applications using JWTs should define which specific claims they use and when they are required or optional.

interface Payload {
[key: string]: unknown;
aud?: string[] | string;
exp?: number;
iat?: number;
iss?: string;
jti?: string;
nbf?: number;
sub?: string;
}

§Index Signatures

§
[key: string]: unknown

§Properties

§
aud?: string[] | string
[src]
§
exp?: number
[src]
§
iat?: number
[src]
§
iss?: string
[src]
§
jti?: string
[src]
§
nbf?: number
[src]
§
sub?: string
[src]