expires Property Optional
Specifies the expiration date for the cookie. If not set, the cookie is considered a session cookie
API
expires?: Date;
Example
import {cookiePart} from '@bitfiber/rx';
const now = new Date();
const token = cookiePart('token');
token.set({
value: 'token-hash',
expires: new Date(now.getTime() + 1000*60*60*24),
});