2FA status (and enrollment info if disabled)
Two-factor authentication
2FA status (and enrollment info if disabled)
If enabled: never returns secret nor otpauth_uri. If disabled: returns pending secret + otpauth_uri for enrollment (cache, not DB).
GET
2FA status (and enrollment info if disabled)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
OK
Example:
"OK"
Example:
"OK"
Example:
false
Example:
"user@example.com"
Example:
"BASE32SECRET..."
Example:
"otpauth://totp/Flowxi:user@example.com?secret=BASE32SECRET&issuer=Flowxi"
Example:
"Flowxi"
Example:
600

