Userbase

Docs : SDK : updateUser

updateUser lets you update a user's account. This API will return a promise that gets resolved once the user account has been updated.

    
      userbase.updateUser({
        username: 'example-new-username',
        currentPassword: 'example-password',
        newPassword: 'example-new-password',
        email: 'example@email.com', 
        profile: { example: 'value' }
      }).then(() => {
        // user account updated
      }).catch((e) => console.error(e))
    
  

Parameters

Notes

Errors