Gerhard Scheikl 143fec7971 fix(auth): pin Supabase auth cookie name to public URL across clients
@supabase/ssr derives the auth cookie storage key from the hostname of the URL
it is given (sb-<sub>-auth-token). After routing server-side clients at the
internal host (kong-prod), the server looked for sb-kong-prod-auth-token while
the browser had set sb-api-auth-token, so server-side getUser() never found the
just-established session and bounced the user off the MFA challenge back to
/login. Pin every client (browser, server, middleware) to the name derived from
NEXT_PUBLIC_SUPABASE_URL via a shared helper so the namespace stays consistent
regardless of which API endpoint the client talks to.
2026-06-02 14:24:34 +02:00
2026-05-29 17:07:00 +02:00
2026-05-29 17:07:00 +02:00
2026-05-29 17:07:00 +02:00
2026-05-29 17:07:00 +02:00
2026-05-29 17:07:00 +02:00
S
Description
No description provided
338 KiB
Languages
TypeScript 95.7%
CSS 3.5%
Dockerfile 0.6%
HTML 0.1%