AuthenticationTwo-factor authentication
Email a one-time code
POST
Send two factor OTP to the user
sessioncookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
application/json- body
trustDevice?booleanSuccessful response
application/json- response
status?booleanExample Request
curl -X POST 'http://localhost:3000/api/auth/two-factor/send-otp' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "status": true}