This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-next / NextCookieTokenStoreOptions

NextCookieTokenStoreOptions ​

Options of nextCookieTokenStore. Use the same name in the server's readCookieTokenStore.

Properties ​

maxAge? ​

optional maxAge?: number

Cookie lifetime, in seconds (Max-Age, a finite number ≥ 0). Default: none, i.e. a browser session cookie (gone when the browser closes). For the session to survive as it does in localStorage, use the refresh token's lifetime, e.g. 60 * 60 * 24 * 30.


name? ​

optional name?: string

Cookie name. Default: 'getenginex.tokens'.


path? ​

optional path?: string

Cookie Path (starts with /, no ; or control characters). Default: '/' (the whole app).