Authentication
Session cookie, CSRF header, portal vs admin login and MFA.
Source: apps/docs/content/authentication.md
Authentication
Browser clients authenticate with email and password. There are two doors on purpose: portal clients and admin operators never share a login URL.
Session cookie
POST /api/v1/auth/portal/loginPOST /api/v1/auth/admin/login
Both issue the lc.sid cookie. Admin operators with MFA then call POST /api/v1/auth/admin/mfa before the session is written.
CSRF
Mutating requests from the browser must send:
credentials: include- header
x-logiccore-csrf: 1
Current user
GET /api/v1/me— signed-in userPATCH /api/v1/me— display name and avatar- Password change is a dedicated operator endpoint; it does not revoke other devices in this slice.
See also
- Help Center: Sign in to LogicCore
- Identity and authorization (ADR-034)