Reference / @getenginex/sdk-next / NextCookieTokenStoreOptions
NextCookieTokenStoreOptions
Options of nextCookieTokenStore. Use the same name in the server's readCookieTokenStore.
Properties
maxAge?
optionalmaxAge?: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?
optionalname?:string
Cookie name. Default: 'getenginex.tokens'.
path?
optionalpath?:string
Cookie Path (starts with /, no ; or control characters). Default: '/' (the whole app).