interface PortalGenerateTokenOptions {
    client?: string;
    expirationMinutes?: number;
    password: string;
    referer?: string;
    username: string;
}

Properties

client?: string

Esri client param ("referer" | "requestip" | "ip"). Defaults to "referer".

expirationMinutes?: number

Token lifetime in minutes.

password: string
referer?: string

Referer registered with the token. Defaults to the portal origin.

username: string