End-user API (SDK)
Sign in with a password
POST/v1/client/sign_in
Temel URL: https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app
Rate-limited to 10 attempts/minute per account and 30/minute per
IP across accounts (credential stuffing). A wrong email or
password, or an account that is not active, both answer the
same 401 invalid_credentials (an inactive account's status is
never revealed).
Gövde application/json
emailstring (email)zorunlupasswordstringzorunlu
Yanıtlar
200OKSession | MfaRequired
Signed in, or
mfa_requiredSession | MfaRequired
A session, or
mfa_requiredwhen the account has two-factor authentication on.Şunlardan biri:
Session
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
MfaRequired
status"mfa_required"zorunlumfa_tokenstringzorunluOpaque, 5-minute lifetime, 5 wrong codes invalidate it (
invalid_mfa_token).
401UnauthorizedError
invalid_credentialsormissing_publishable_key.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
429Too Many RequestsError
rate_limited. Retry afterRetry-Afterseconds.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