Javascript SDK
SDK Configuration
options parameters
elementId
string
requiredRefers to the DOM element to mount the SDK component UI.
e.g.
<div id="login"></div>
here the elementId: "login"
enabledProducts
[string]
requiredDetermines what products will be enabled within the SDK component UI. Possible values: emailMagicLink
. Coming soon: oauth
, smsOtp
, emailOtp
.
config
StreambirdClientProps Object
emailMagicLink
EmailMagicLinkOptions 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.