Skip to main content
<SunbreakProvider
  clientId="..."
  base="https://api.sunbreak.com"
  wallet={wallet}
  proof={proof}
  providerAdapter={adapter}
  refreshDeps={[...values]}
  timeoutMs={15000}
  fetchImpl={fetch}
>
  {children}
</SunbreakProvider>

Props

PropTypeRequiredDescription
clientIdstringyesSunbreak client ID
basestringnoAPI base (default https://api.tdfc.com)
walletstringnoActive wallet/public key
proofProofnoProvider JWT, SIWE/EIP-191, or ed25519
providerAdapterProviderAdapternoAdapter that returns a provider token
refreshDepsunknown[]noValues that trigger re-evaluation
timeoutMsnumbernoRequest timeout in ms
fetchImpltypeof fetchnoCustom fetch implementation

Provider-specific configuration

Different authentication providers expose unique token and proof mechanisms. Use the providerAdapter prop to integrate with your chosen provider. Each provider page contains a working example of <SunbreakProvider> setup and how to form its proof or adapter token.