MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / clearCookie

Function clearCookie

apps/app-server/src/utils/cookies.ts:24–38  ·  view source on GitHub ↗
(
  reply: FastifyReply,
  name: string,
  options?: CookieSerializeOptions,
)

Source from the content-addressed store, hash-verified

22 });
23}
24export function clearCookie(
25 reply: FastifyReply,
26 name: string,
27 options?: CookieSerializeOptions,
28) {
29 void reply.clearCookie(name, {
30 secure: !process.env.DEV,
31 domain: process.env.HOST,
32 path: '/',
33 sameSite: 'strict',
34 httpOnly: true,
35
36 ...options,
37 });
38}
39
40export function setCookies(input: {
41 reply: FastifyReply;

Callers 1

clearCookiesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected