MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / setResponseCookie

Function setResponseCookie

apps/cloud/src/auth/handlers.ts:149–154  ·  view source on GitHub ↗
(
  response: HttpServerResponse.HttpServerResponse,
  name: string,
  value: string,
  options: typeof RESPONSE_COOKIE_OPTIONS,
)

Source from the content-addressed store, hash-verified

147};
148
149const setResponseCookie = (
150 response: HttpServerResponse.HttpServerResponse,
151 name: string,
152 value: string,
153 options: typeof RESPONSE_COOKIE_OPTIONS,
154) => HttpServerResponse.setCookieUnsafe(response, name, value, options);
155
156const deleteResponseCookie = (response: HttpServerResponse.HttpServerResponse, name: string) =>
157 HttpServerResponse.setCookieUnsafe(response, name, "", DELETE_COOKIE_OPTIONS);

Callers 1

handlers.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected