End-user API (SDK)
Second sign-in step: complete the TOTP or recovery-code challenge
POST/v1/client/sign_in/mfa
Base URL: https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app
Completes an mfa_required challenge from sign-up, sign-in, the
email code, Google sign-in or a password reset. mfa_token expires
after 5 minutes or 5 wrong codes (401 invalid_mfa_token); a wrong
code under that is 400 invalid_mfa_code.
Unlike the other sign-in steps, this one does not
check X-Fox-Publishable-Key (or any other credential) — the
possession of a valid, unexpired mfa_token is what authorizes
the call. Documented as implemented; flagged separately as worth
a second look.
Body application/json
mfa_tokenstringrequiredcodestringrequiredA current TOTP code or a recovery code.
Responses
200OKSession
Signed in
userEndUserProfileThe end-user object returned by the End-user API (SDK). Has no
phonefield; phone sign-in is not implemented.10 properties
idstringExample:
usr_tr_8f2c91a7regionstringMore regions will be added; clients must accept unknown values.
Values:
EUTRemailstringemail_verifiedbooleannamestringnullablecountrystringISO 3166-1 alpha-2
statusstringOnly
activeis reachable through the SDK; other statuses cannot sign in.Example:
activelabelsLabelscreated_atstring (date-time)last_sign_in_atstringnullable
session_idstringaccess_tokenstringrefresh_tokenstringtoken_type"Bearer"expires_in600
400Bad RequestError
invalid_mfa_code.errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject
401UnauthorizedError
invalid_mfa_token: the challenge expired, was already used, or had too many wrong codes. Sign in again.errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject