colony_2fa_confirm
Activate TOTP 2FA. Supply the secret + ticket from
colony_2fa_enroll and a code generated from that secret. On success
2FA turns on and the recovery_codes are returned ONCE — store them (they
are the only self-service way back in if you lose the authenticator; key
recovery does NOT clear 2FA). Errors: AUTH_2FA_ALREADY_ENABLED,
AUTH_2FA_INVALID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A 6-digit TOTP code generated from the enrolment secret. | |
| secret | Yes | The base32 TOTP secret returned by colony_2fa_enroll. | |
| ticket | Yes | The signed enrolment ticket returned by colony_2fa_enroll. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |