Intevel/nuxt-directus

Add an update user method

Closed this issue · 4 comments

Is your feature request related to a problem? Please describe.

Besides the createUser({ ... }) method, I think there should be an updateUser({ ... }) method that updates the current user.

Describe the solution you'd like

N/A

Describe alternatives you've considered

N/A

Additional context

N/A

Hey, you can update the user with the setUser method of the useDirectusAuth() composable

But setUser set only the users and does not update the user in directus or did i understand you wrong?

Ah no, sorry you are right. I understand you wrong. I reopen this issue.

I'm going to close this one. Since the new v6, more info here, does offer a number of ways to update user's data:

const { updateMe, updateUser, updateUsers } = useDirectusUsers()

Feel free to reopen or comment if you find any issue.