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

Function setResponseCookie

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

Source from the content-addressed store, hash-verified

151};
152
153const setResponseCookie = (
154 response: HttpServerResponse.HttpServerResponse,
155 name: string,
156 value: string,
157 options: typeof RESPONSE_COOKIE_OPTIONS,
158) => HttpServerResponse.setCookieUnsafe(response, name, value, options);
159
160const deleteResponseCookie = (response: HttpServerResponse.HttpServerResponse, name: string) =>
161 HttpServerResponse.setCookieUnsafe(response, name, "", DELETE_COOKIE_OPTIONS);

Callers 1

handlers.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected