Cookies
Refresh
Clients call/api/auth/refresh to renew tokens. Keep middleware lean — heavy logic belongs in route handlers (Cloudflare size).
Recommended Supabase Auth settings
Logout
Viewer/landing logout via/api/landing/logout and standard Supabase sign-out on account surfaces. Operator logout clears the operator cookie scope only.