Auth
Verify code & start session
Exchange a verified 6-digit code for a session cookie.
POST
The email the code was sent to. Must exactly match.
The 6-digit code received by email.
The signed-in user.
ISO 8601 UTC timestamp when the session will expire (default: 30 days
from now, refreshed on every authenticated request).
Attempt limit
5 wrong attempts per code. After the 5th, the code is invalidated even if you guess correctly next — you’ll need to request a new one.On success
The server:- Marks the code as consumed (single-use)
- Creates a session record in the database
- Sets the
sidHttpOnly cookie on the response - Returns the user + session expiry