End-user API (SDK)
Password reset, step 2: set the new password and sign in
POST/v1/client/password_reset/confirm
Basis-URL: https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app
Ends every other session (sign-out everywhere) before signing in on this one.
Body application/json
emailstring (email)erforderlichcodestringerforderlichpasswordstringerforderlich
Antworten
200OKSession | MfaRequired
Signed in, or
mfa_requiredSession | MfaRequired
A session, or
mfa_requiredwhen the account has two-factor authentication on.Eines von:
Session
userEndUserProfileThe end-user object returned by the End-user API (SDK). Has no
phonefield; phone sign-in is not implemented.10 Felder
idstringBeispiel:
usr_tr_8f2c91a7regionstringMore regions will be added; clients must accept unknown values.
Werte:
EUTRemailstringemail_verifiedbooleannamestringnullablecountrystringISO 3166-1 alpha-2
statusstringOnly
activeis reachable through the SDK; other statuses cannot sign in.Beispiel:
activelabelsLabelscreated_atstring (date-time)last_sign_in_atstringnullable
session_idstringaccess_tokenstringrefresh_tokenstringtoken_type"Bearer"expires_in600
MfaRequired
status"mfa_required"erforderlichmfa_tokenstringerforderlichOpaque, 5-minute lifetime, 5 wrong codes invalidate it (
invalid_mfa_token).
400Bad RequestError
invalid_codeorweak_password.errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject
401UnauthorizedError
Missing or invalid key or token. The Management API answers
missing_api_key(no Bearer token) orinvalid_api_key(unknown or revoked secret key or organization API key).errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject
429Too Many RequestsError
rate_limited. Retry afterRetry-Afterseconds.errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject