Login with 42
The OAuth 2.0 authorization-code flow against the 42 API, written by hand.
- The code is exchanged for an access token on the server, then the 42 profile is fetched and the account created on first login
- The session is a JWT in an httpOnly cookie, out of reach of page scripts
- Logout clears the cookie, sets the user offline and drops their tracked sockets