Skip to main content
<SunbreakProvider
  clientId="..."
  baseUrl="https://api.sunbreak.com"
  wallet={wallet}
  proof={proof}
>
  <!-- your app -->
</SunbreakProvider>

Props

PropTypeRequiredDescription
childrenSnippetyesSvelte 5 snippet (slot content)
clientIdstringyesSunbreak client ID
baseUrlstringnoAPI base URL (default https://api.sunbreak.com)
basestringnoAlias for baseUrl
walletstringnoActive wallet address / public key
proofProofnoSIWE, EIP-191, or Ed25519 proof
providerAdapterProviderAdapternoAuth provider adapter (Privy, Dynamic)
debugbooleannoEnable debug logging
fetchImpltypeof fetchnoCustom fetch implementation
timeoutMsnumbernoRequest timeout in ms
refreshDepsunknown[]noDependencies that trigger re-authentication

Proof Types

The Svelte SDK authenticates via signed message proofs. Pass one of these as the proof prop:
// SIWE (EIP-4361)
{ method: "siwe", message: string, signature: string }

// EIP-191 (personal_sign)
{ method: "eip191", message: string, signature: string }

// Ed25519 (Solana)
{ method: "ed25519", messageBase64: string, signatureBase64: string }
See the wallet examples for complete working code.