props parameters

publicToken
string
required

Publishable API Key that identifies your App.

config
StreambirdClientProps Object

This is the config for emailMagicLink and required if emailMagicLink is enabled in enabledProducts

wallet
Web3NetworkConfig Object

Determines what kind of wallet login to perform, if we cannot find any wallets for a new or existing user, we will provision a wallet of the specified type for this user.

componentStyle
ComponentStyleBase

Custom styling for the login UI component

callbacks
Object

Custom event handler functions for different events triggered within the SDK.

onSuccess
function(data) => void

When there is a success event such as when magic link has been sent.

onError
function(data) => void

Any error that might occur from the SDK or API. This is helpful for doing debug during development and production.