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

JwtPayload

import type { JwtPayload } from "https://esm.sh/@supabase/supabase-js@2.89.0/dist/index.d.mts";

JWT Payload containing claims for Supabase authentication tokens.

Required claims (iss, aud, exp, iat, sub, role, aal, session_id) are inherited from RequiredClaims. All other claims are optional as they can be customized via Custom Access Token Hooks.

interface JwtPayload extends RequiredClaims {
[key: string]: any;
amr?: AMREntry[] | string[];
app_metadata?: UserAppMetadata;
email?: string;
is_anonymous?: boolean;
jti?: string;
nbf?: number;
phone?: string;
ref?: string;
user_metadata?: UserMetadata;
}

§Extends

§Index Signatures

§
[key: string]: any

§Properties

§
amr?: AMREntry[] | string[]
[src]

Authentication Method References. Supports both RFC-8176 compliant format (string[]) and detailed format (AMREntry[]).

  • String format: ['password', 'otp'] - RFC-8176 compliant
  • Object format: [{ method: 'password', timestamp: 1234567890 }] - includes timestamps
§
app_metadata?: UserAppMetadata
[src]
§
email?: string
[src]
§
is_anonymous?: boolean
[src]
§
jti?: string
[src]
§
nbf?: number
[src]
§
phone?: string
[src]
§
ref?: string
[src]
§
user_metadata?: UserMetadata
[src]