Skip to content

AmeeOptions

The Configuration options to initialize Amee

Properties

secret: string | string[]

Used in combination with salt, to derive the encryption secret for JWT.

cookieName: string;

The Cookie name that is used to get the session and the cookie options.

salt?: string

Used in combination with secret, to derive the encryption secret for JWT.

maxAge?: number

Specifies the Max-Age attribute in seconds to define the lifetime of the cookie and the issued JWT.

  • @default 30 * 24 * 60 * 60 // 30 DAYS
cookie?: CookieAttributesCore

Cookie attributes as key value pair.

See Also