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

Function setResponseCookie

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

Source from the content-addressed store, hash-verified

133};
134
135const setResponseCookie = (
136 response: HttpServerResponse.HttpServerResponse,
137 name: string,
138 value: string,
139 options: typeof RESPONSE_COOKIE_OPTIONS,
140) => HttpServerResponse.setCookieUnsafe(response, name, value, options);
141
142const deleteResponseCookie = (response: HttpServerResponse.HttpServerResponse, name: string) =>
143 HttpServerResponse.setCookieUnsafe(response, name, "", DELETE_COOKIE_OPTIONS);

Callers 1

handlers.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected