Skip to main content
POST
/
auth
Refresh an ID token
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>"
}

Body

application/json
grant_type
enum<string>
required

Must be "refresh_token"

Available options:
refresh_token
refresh_token
string
required

The refresh token received from a previous /auth, /get-card, or /send-payment call

Response

Refreshed auth credentials and user ID

id_token
string

New ID token — use as Bearer token for Laso Finance APIs

refresh_token
string

New refresh token — use for the next refresh

expires_in
string

Token lifetime in seconds

user_id
string

The user's ID (lowercase wallet address)