nuxt-directus icon indicating copy to clipboard operation
nuxt-directus copied to clipboard

Add an update user method

Open TitusKirch opened this issue 3 years ago • 3 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

TitusKirch avatar Oct 01 '22 14:10 TitusKirch

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

Intevel avatar Oct 06 '22 18:10 Intevel

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

TitusKirch avatar Oct 08 '22 15:10 TitusKirch

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

Intevel avatar Oct 08 '22 16:10 Intevel

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.

sandros94 avatar Feb 01 '24 14:02 sandros94