TokenOptions

token options

interface TokenOptions {
  duration?: string;
  pkce?: boolean;
}

index

properties

Properties

duration ?

token expiration duration. by default 12 hr, with a max of 3 days. Valid units are: "sec", "secs", "second", "seconds", "s", "minute", "minutes", "min", "mins", "m", "hour", "hours", "hr", "hrs", "h", "day", "days", "d", "week", "weeks", "w", "year", "years", "yr", "yrs", and "y". It is not possible to specify months. 365.25 days is used as an alias for a year.

string

pkce ?

whether to create pkce challenges. by default this is false and the tokens are created in the client

boolean