Besides all of our headless methods, we also provide a compreehensive set of UI modals that can be easily leveraged to achieve the same functionalities.

Using Dynamic’s modals

You can leverage our authentication flow modal to sign your users in — this will bring our sign in modal on top of your app, and once the user has successfully signed in, it will automatically close.

You can show the authentication modal by calling:

dynamicClient.ui.auth.show()

To hide the authentication modal programmatically, you can use:

dynamicClient.ui.auth.hide()

After the user has signed in successfully, you can also bring up our user profile interface, which allows your user to view their wallet’s address and balance, as well as editing their fields like email and phone number.

To show the user profile modal, call:

dynamicClient.ui.userProfile.show()

To hide the user profile modal programmatically, use:

dynamicClient.ui.userProfile.hide()

You can read more about our UI modules here.