End-user API (SDK)
Refresh the session
POST/v1/client/token
Basis-URL: https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app
Single-use, rotating refresh token. Presenting a refresh token that was already used revokes the whole session immediately (both holders lose it — one of them is an attacker). Rate-limited to 600 refreshes/minute per IP (shared NATs refresh a lot).
Body application/json
refresh_tokenstringerforderlich
Antworten
200OKTokenPair
A new token pair
session_idstringBeispiel:
ses_8f2c91a7access_tokenstringJWT, 10-minute lifetime. Verify with GET /.well-known/jwks.json.
refresh_tokenstringOpaque. Single-use; rotates on every
/tokencall. Presenting an already-used one revokes the whole session.token_type"Bearer"expires_in600Seconds until
access_tokenexpires.
401UnauthorizedError
invalid_refresh_token.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