Auth

Finish a sign-in with the authenticator code (p19,

Changed on

The challenge from login plus a code, accepted one step either side and never for the same step twice (401 TWO_STEP_CODE_WRONG; an expired or forged challenge is 401 TWO_STEP_CHALLENGE_EXPIRED). trustBrowser sets the httpOnly median_trusted_browser cookie for 30 days. Answers as login does. A wrong code counts on the account lock shared with password sign-in (5 in a row lock it for 15 minutes: 401 TWO_STEP_LOCKED); a right one resets it. Behind its own rate limit. The challenge is signed with its own key and is never accepted as a Bearer access token.

post/auth/two-step/verify

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    none required

Request body

object required
challengeToken, string required
code, string required
trustBrowser, boolean

Response

Signed in

AuthResponse required
success, boolean
data, object

Example response

{
  "success": true
}

Changes