maxAge Property Optional
Specifies the maximum age of the cookie in seconds. Overrides expires
if both are set
API
maxAge?: number;
Example
import {cookiePart} from '@bitfiber/rx';
const now = new Date();
const token = cookiePart('token');
token.set({
value: 'token-hash',
maxAge: 120,
});