End-user API (SDK)
Refresh the session
POST/v1/client/token
Temel 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).
Gövde application/json
refresh_tokenstringzorunlu
Yanıtlar
200OKTokenPair
A new token pair
session_idstringÖrnek:
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.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