Skip to main content
Version: 11.14.0

deleteWebTokenCookie

Deletes the JSON Web Token (JWT) cookie by sending a GET request to the backend server's cookie-deletion endpoint. This is typically called during logout.

Returns Promise<void>

Example

delete-web-token-cookie.ts
import { deleteWebTokenCookie } from '@sinequa/atomic';

await deleteWebTokenCookie();
console.log('JWT cookie deleted');