MCPcopy Index your code
hub / github.com/simstudioai/sim / setChatAuthCookie

Function setChatAuthCookie

apps/sim/app/api/chat/utils.ts:19–26  ·  view source on GitHub ↗
(
  response: NextResponse,
  chatId: string,
  type: string,
  encryptedPassword?: string | null
)

Source from the content-addressed store, hash-verified

17const logger = createLogger('ChatAuthUtils')
18
19export function setChatAuthCookie(
20 response: NextResponse,
21 chatId: string,
22 type: string,
23 encryptedPassword?: string | null
24): void {
25 setDeploymentAuthCookie(response, 'chat', chatId, type, encryptedPassword)
26}
27
28/**
29 * A first-party origin is the app itself or any `*.sim.ai` host (chat subdomains

Callers 3

utils.test.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

setDeploymentAuthCookieFunction · 0.90

Tested by

no test coverage detected