oauth_login
Authenticate or register with a Google OIDC ID token to access GDEX Trading. If the wallet lacks a linked email, associate one first, then retry login.
Instructions
Log in or sign up using a Google ID token. Google OIDC only — there is no Apple/GitHub branch. If the wallet has no associated email yet, the backend returns 404 with internal code 108 and the caller must invoke associate_email first (using the same idToken) before retrying.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"idToken": "<idToken>"
},
"name": "oauth_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Optional chain id hint for wallet resolution. | |
| idToken | Yes | Google-issued OIDC ID token (JWT). |