---
description: requires user id
---

# Update User

```typescript
import authefyWebClient from './path/to/@authefy/web-client';
/*
    When updating user details, the old user details will be merge to the new user details.
    If a key exists in both details, the value from the new user details will be used.
*/

await authefyWebClient.user.update('ca10416e530f5f7bb7dfb02940143618', {
    isVerified: true,
    email: 'uphibtu@su.li',
    details: {
        age: 24
    }
})
```
