cURL
curl --request POST \ --url https://laso.finance/auth \ --header 'Content-Type: application/json' \ --data ' { "grant_type": "refresh_token", "refresh_token": "<string>" } '
{ "id_token": "<string>", "refresh_token": "<string>", "expires_in": "<string>", "user_id": "<string>" }
Exchange a refresh token for a new ID token. This is a free endpoint — no x402 payment required. Uses the standard OAuth2 grant_type=refresh_token pattern.
grant_type=refresh_token
Must be "refresh_token"
refresh_token
The refresh token received from a previous /auth, /get-card, or /send-payment call
Refreshed auth credentials and user ID
New ID token — use as Bearer token for Laso Finance APIs
New refresh token — use for the next refresh
Token lifetime in seconds
The user's ID (lowercase wallet address)