Props
| Prop | Type | Required | Description |
|---|---|---|---|
| clientId | string | yes | Sunbreak client ID |
| base | string | no | API base (default https://api.tdfc.com) |
| wallet | string | no | Active wallet/public key |
| proof | Proof | no | Provider JWT, SIWE/EIP-191, or ed25519 |
| providerAdapter | ProviderAdapter | no | Adapter that returns a provider token |
| refreshDeps | unknown[] | no | Values that trigger re-evaluation |
| timeoutMs | number | no | Request timeout in ms |
| fetchImpl | typeof fetch | no | Custom fetch implementation |
Provider-specific configuration
Different authentication providers expose unique token and proof mechanisms. Use theproviderAdapter prop to integrate with your chosen provider.
Dynamic
Use
@dynamic-labs/sdk-react-core to supply environment and
token.Privy
Integrate
@privy-io/react-auth for wallet and token access.MetaMask / SIWE
Use an EIP-191 signed message as a proof.
Solana / Phantom
Sign an ed25519 message for authentication.
<SunbreakProvider> setup and how to form its proof or adapter token.