Standard Integration
For standard wallet connections (e.g., MetaMask, WalletConnect), use the simple adapter to pass the Dynamic authentication token.Embedded Wallets
If you use Dynamic Embedded Wallets, Dynamic may issue an initial authentication token (containing only an email) before the embedded wallet is fully generated. To prevent Sunbreak from verifying a token that lacks a wallet binding, use this robust adapter. It inspects the JWT to ensure a blockchain credential exists before returning it.- refreshDeps: When using Embedded Wallets, you must include
user?.verifiedCredentialsinrefreshDeps. This ensures the SDK attempts verification again once the wallet is successfully added to the user’s profile. - Environment: Ensure
envIdmatches your Dynamic environment ID.