End-user API (SDK)
Second sign-in step: complete the TOTP or recovery-code challenge
POST/v1/client/sign_in/mfa
Temel 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.
Gövde application/json
mfa_tokenstringzorunlucodestringzorunluA current TOTP code or a recovery code.
Yanıtlar
200OKSession
Signed in
userEndUserProfileThe end-user object returned by the End-user API (SDK). Has no
phonefield; phone sign-in is not implemented.10 alan
idstringÖrnek:
usr_tr_8f2c91a7regionstringMore regions will be added; clients must accept unknown values.
Değerler:
EUTRemailstringemail_verifiedbooleannamestringboş olabilircountrystringISO 3166-1 alpha-2
statusstringOnly
activeis reachable through the SDK; other statuses cannot sign in.Örnek:
activelabelsLabelscreated_atstring (date-time)last_sign_in_atstringboş olabilir
session_idstringaccess_tokenstringrefresh_tokenstringtoken_type"Bearer"expires_in600
400Bad RequestError
invalid_mfa_code.errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
401UnauthorizedError
invalid_mfa_token: the challenge expired, was already used, or had too many wrong codes. Sign in again.errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject