AuthenticationTwo-factor authentication
Verify a TOTP code
POST
Verify two factor TOTP
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
code*stringThe otp code to verify. Eg: "012345"
trustDevice?booleanIf true, the device will be trusted for 30 days. It'll be refreshed on every sign in request within this time. Eg: true
Successful response
application/json- response
status?booleanExample Request
curl -X POST 'http://localhost:3000/api/auth/two-factor/verify-totp' \ -H 'Content-Type: application/json' \ -d '{ "code": "string"}'Example Response
{ "status": true}