Enrollment

Complete TOTP enrollment

Confirms the secret returned by /user/start/setup-two-factor by submitting the current 6-digit code from the authenticator app. Returns the one-time recovery codes — show them to the user once.

post/user/resume/setup-two-factor

Request

  • Base URL
    https://www.sandbox.striga.com/api/v1
  • URL
    https://www.sandbox.striga.com/api/v1/user/resume/setup-two-factor
  • Auth
    API key in header api-key and API key in header Authorization

Request body

userIdstring required
secretstring required

Secret returned by /user/start/setup-two-factor.

codestring required

Response

TOTP is now enrolled. Recovery codes returned once.

recoveryCodesstring[]

One-time recovery codes.

Changes

No recorded changes to this operation across all 1 revision of this API.