logout
function, and it will clear all the session data, including the Dynamic user and any connected wallets (non verified wallets).
updateUser
function.
You can pass many user fields to the function, and it will update the user with the new values.
If any of the fields require OTP verification (like email or phone number), the function will return an OTPVerification
object,
that you can use to check what kind of OTP verification is required (email or phone number), send the OTP to the user, and verify the OTP.
user.missingFields
property.
With that, you can display the appropriate UI to the user to complete the onboarding process, and call the updateUser
function to update the user with the missing fields.
refreshUser
function.
This function will refresh the user object in the SDK with the latest data from the server.