Users
Frontend SDK
The OwnID JS SDK allows you to perform various operations on the logged-in user’s account directly within their session. Below are examples of how to retrieve and update a user’s profile using the SDK.
Retrieve an Account’s Profile
You can retrieve the currently logged-in user’s profile with the following code:
This operation fetches the profile data for the logged-in user and allows you to interact with their account information directly within the frontend.
Update an Existing Account Profile
To update the profile of the logged-in user, use the following example:
This code updates the user’s profile with the provided information and reflects the changes in their active session.
Was this page helpful?