From bc97d009ae216cc8d436d8293a8fcc5dbe556dc1 Mon Sep 17 00:00:00 2001 From: john Date: Tue, 20 May 2025 11:35:58 +0200 Subject: [PATCH] add debugging --- src/app/api/client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/api/client.ts b/src/app/api/client.ts index 792938b..b8ca07f 100644 --- a/src/app/api/client.ts +++ b/src/app/api/client.ts @@ -6,6 +6,8 @@ const client = createClient({ baseUrl: import.meta.env.VITE_API_URL }) const UnauthorizedHandlerMiddleware: Middleware = { async onResponse({ response }) { + console.debug(response.headers.getSetCookie()) + console.debug(response.headers.get('set-cookie')) if (response.status === 401) { dispatchMessage('auth:unauthorized', null) }