Skip to Content

path Property Optional

Specifies the URL path that must exist in the requested URL for the cookie to be valid

API

path?: string;

Example

import {cookiePart} from '@bitfiber/rx'; const now = new Date(); const token = cookiePart('token'); token.set({ value: 'token-hash', path: '/some-path', });
Last updated on