BunShip supports TOTP-based two-factor authentication (2FA) using authenticator apps such as Google Authenticator, Authy, or 1Password. The setup flow has three steps: initiate setup, scan the QR code, then verify a code to activate.
Setup 2FA
Requires a valid Bearer token.
POST /api/v1/auth/two-factor/setup
Generates a TOTP secret, QR code, and backup recovery codes. The user must scan the QR code with an authenticator app and then call the verify endpoint to finalize activation.
Request Body
string
required
Current account password to confirm identity.
Response
string
TOTP secret string for manual entry into the authenticator app.
string
Base64-encoded data URL of the QR code image.
string[]
One-time backup codes for account recovery if the authenticator device is lost.