fix: convert auth flows from SSE to standard HTTP to fix session cookies #14
Reference in New Issue
Block a user
Delete Branch "fix/login-session-cookie"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
datastar.NewSSE()flushes HTTP response headers before SCS's session middleware can attach theSet-Cookieheader, so the browser never receives the session cookie after login/register/logoutreturn_urlcapture on the login page — the query parameter was never being stored in the session, so redirect-after-login didn't work