Post Two Factor Verify Backup Code

Verify a backup code for two-factor authentication

Authentication

AuthorizationBearer
Bearer token authentication

Request

This endpoint expects an object.
codestringRequired

A backup code to verify. Eg: “123456”

disableSessionboolean or nullOptional
If true, the session cookie will not be set.
trustDeviceboolean or nullOptional

If true, the device will be trusted for 30 days. It’ll be refreshed on every sign in request within this time. Eg: true

Response

Backup code verified successfully
userobject

The authenticated user object with two-factor details

sessionobject
The current session object, included unless disableSession is true

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error