Skip to main content

Complete Login

POST 

/api/auth/2fa/login

Complete second factor for login.

You can learn more about the login flow here.

Requirements

  • User authenticated using their password through POST /api/auth/login.
  • At least one of email or TOTP as 2FA methods should be enabled.
  • An email or totp 2FA code is present for an enabled 2FA method. Check out email and TOTP to learn how to retrieve a 2FA code.

Optional session data:

  • The session object can be included in the request body.
  • Inside the session object, you can provide the following optional fields:
    • browser: The name of the browser used (e.g., "Chrome", "Firefox").
    • os: The operating system of the device (e.g., "Windows", "macOS", "Android").

This information helps users identify and manage authorized sessions, improving overall account security.

Tokens

Request

Responses

Information about the user and the tokens if header authentication is enabled.