/** * Cookie Utilities * * Helpers for clearing nauth auth cookies in HTTP responses. */ import { NAuthConfig } from '../interfaces/config.interface'; export interface CookieOptions { domain?: string; path?: string; secure?: boolean; sameSite?: 'strict' | 'lax' | 'none'; } /** * Clear nauth auth cookies on the response. * * - Clears access token, refresh token, CSRF token cookies * - Optionally clears device token cookie (only when forgetDevice=true) * - Device token cookies persist across logout by default (remember device feature) * - Applies security attributes consistent with how cookies were set * - Uses configured cookie name prefix (default: 'nauth_') * * @param res - HTTP response object (Express or Fastify compatible) * @param config - NAuth configuration (optional, for cookie name resolution) * @param opt - Optional cookie options to match configured attributes * @param forgetDevice - If true, also clears device token cookie (for "forget me" logout). Default: false */ export declare function clearAuthCookies(res: { cookie?: Function; setCookie?: Function; }, config?: NAuthConfig | CookieOptions, opt?: CookieOptions, forgetDevice?: boolean): void; //# sourceMappingURL=cookies.util.d.ts.map