<SunbreakProvider /> Props
| Prop | Type | Required | Description |
|---|---|---|---|
| clientId | string | yes | Sunbreak client ID |
| base | string | no | API base (default https://api.sunbreak.com) |
| wallet | string | no | Active wallet address or public key |
| proof | Proof | no | Provider JWT, SIWE/EIP-191, or ed25519 proof |
| providerAdapter | ProviderAdapter | no | Dynamic, Privy, custom adapters |
| refreshDeps | unknown[] | no | Values that trigger re-evaluation (e.g., wallet, user) |
| timeoutMs | number | no | Request timeout (ms; default 15000) |
| fetchImpl | typeof fetch | no | Custom fetch implementation |
Some of these props are not strictly required for the SDK provider, but a combination of them are needed for it to work. Read the providers section to learn more.
Behavior
- When
wallet+ validproof(orproviderAdaptertoken) are present, the SDK attempts registration automatically. - If a refresh session exists, the SDK refreshes silently and calls
session()once. - Authorization is intentionally skipped when
wallet≠boundWalletto prevent cross‑wallet leakage.