v1
latestOpenAPI 3.1.02026-07-13143194365.4 KBauth
Connect wallet (signup or recover)
Connect a wallet to Grove by proving ownership via signature.
New wallet: Creates account + server wallet + EOA wallet and returns JWT. Existing wallet: Regenerates the deterministic JWT and returns account details.
The JWT is deterministic: same signing_address + same JWT_SECRET = same token.
Possible outcomes
| Case | Result | is_new_account |
|---|---|---|
| New wallet | Creates account, server wallet, returns new JWT | true |
| Existing account | Returns existing JWT + account details | false |
| Invalid signature | 401 Unauthorized | — |
post/v1/auth/wallet/connect
Request body
Response
Successful Response