@foal/core
Version:
Full-featured Node.js framework, with no complexity
14 lines (13 loc) • 523 B
TypeScript
import { HttpResponse } from '../../../core';
/**
* Deletes the browser cookie containing the session token.
*
* If the CSRF protection is enabled, it also deletes the CSRF cookie containing the CSRF token.
*
* If the `user` argument is true, it also deletes the "user" cookie.
*
* @export
* @param {HttpResponse} response - The HTTP response
* @param {boolean} [user] - Specify if the "user" cookie should be deleted.
*/
export declare function removeSessionCookie(response: HttpResponse, user?: boolean): void;