managarten/packages/shared-auth/src
Till JS 720602343e fix(shared-auth): set SSO session cookie on login
The signIn() method only called the custom /api/v1/auth/login endpoint
which returns JWT tokens but doesn't set a session cookie. Without the
cookie, cross-subdomain SSO (trySSO) can never find an active session.

Now also calls Better Auth's native /api/auth/sign-in/email with
credentials:'include' after successful login, which sets the session
cookie with Domain=.mana.how for cross-subdomain SSO.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 19:27:33 +01:00
..
adapters fix(shared-auth): add UUID fallback for HTTP contexts 2025-12-05 04:26:34 +01:00
clients feat(contacts): integrate contacts into Todo and Calendar apps 2025-12-11 18:14:35 +01:00
core fix(shared-auth): set SSO session cookie on login 2026-03-20 19:27:33 +01:00
interceptors 🐛 fix(shared-auth): add automatic token refresh on 401 responses 2025-12-12 20:47:43 +01:00
types feat(auth): implement cross-subdomain SSO for all web apps 2026-02-02 13:17:04 +01:00
index.ts 🐛 fix(shared-auth): add automatic token refresh on 401 responses 2025-12-12 20:47:43 +01:00