Get auth credentials
Free endpoint. Returns an ID token, refresh token, and user ID for the calling wallet. Use the ID token as a Bearer token to call Laso Finance APIs.
Prove wallet ownership by sending a SIGN-IN-WITH-X header: a base64-encoded CAIP-122 signed message. Build it with @x402/extensions/sign-in-with-x (e.g. wrapFetchWithSIWx handles the round-trip automatically). Works for any EVM (Base, eip155:8453) or Solana mainnet wallet.
For ID-token refresh use POST /auth with grant_type=refresh_token.
Authorizations
Sign-In-With-X (CAIP-122) wallet signature proving ownership of the calling EVM (Base) or Solana wallet. Identity only, no payment. Build it with @x402/extensions/sign-in-with-x (wrapFetchWithSIWx).
Headers
Base64-encoded CAIP-122 signed message proving wallet ownership.