Skip to main content

TOTP Two-Factor Authentication

LearnWay supports Time-based One-Time Password (TOTP) compliant two-factor authentication (RFC 6238).

Setup TOTP

Initiates TOTP configuration, generating a secret key, provisioning URI, and QR code Data URL for authenticator apps.

Endpoint

Headers

Response (200 OK)


Verify & Enable TOTP

Validates an initial code from the user’s authenticator app to formally activate 2FA and returns recovery backup codes.

Endpoint

Headers

Request Body

Response (200 OK)


Disable TOTP

Disables 2FA on the account using a valid TOTP token or user password confirmation.

Endpoint

Request Body