Authentication
Login
Authenticate and receive a JWT token
POST
Registered email address
Account password
rolearn_access, rolearn_refresh, and
rolearn_csrf cookies (see API Overview → Authentication).
For non-browser clients the access token is also returned in the JSON body so it
can be used as a Bearer credential.
Web clients should rely on the cookies and ignore the body token. Every later
POST/PUT/DELETE must echo the rolearn_csrf cookie in an X-CSRF-Token
header. Each fresh login bumps the account’s token version, invalidating any
previously issued tokens (single-active-session model).
