( response: NextResponse, chatId: string, type: string, encryptedPassword?: string | null )
| 17 | const logger = createLogger('ChatAuthUtils') |
| 18 | |
| 19 | export 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 |
no test coverage detected