Skip to main content
The base package that provides access to the Dynamic Client, which can be extended with extension packages.

Functions

DynamicSDK.init

Initiates a singleton of a client object, which provides an interface to read state, trigger actions and listen to events of our SDK.

Objects

ClientProps

The parameters that are acceptable by the DynamicSDK.init method.

DynamicSDK.instance

The base object of a client. Since clients can be extended (and thus have their objects composed with those of the extensions), this is considered the most basic kind of client: the one that is returned from the DynamicSDK.init method. It is composed of properties which we call modules. Note that all modules have state properties and implement one or more streams.
For every property that is a state, there will always be a stream named with the same name plus "Changes", which will be triggered when the property changes value. We will omit these from the docs below as they are implicit.

auth module

Provides access to authentication related properties and methods of the SDK.

auth.email submodule

Provides methods to send, re-send and verify OTPs to email.

auth.sms submodule

Provides methods to send, re-send and verify OTPs to phone numbers.

auth.social submodule

Provides a method to connect social accounts.

sdk module

Gives insight over the state of the SDK.

ui module

Provides access to Dynamic’s UI.

wallets module

Provides access to the user’s wallets.

wallets.embedded submodule

Allows interacting with and creating an embedded wallet for the current user.