> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/ios-docs/auth/update-user-profile.md).

# Update user profile

You can update some data of the profile of the current **`MBUser`**. In case of success it returns an updated **`MBUser`** as a parameter of the success block.

```swift
MBAuth.updateProfile(withName: "name", 
                     surname: "surname", 
                     phone: "1234567890", 
                     image: nil, 
                     data: nil, 
                     success: { user in
}, failure: { error in      
})
```
