Add an update user method
Closed this issue · 4 comments
TitusKirch commented
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
Intevel commented
Hey, you can update the user with the setUser
method of the useDirectusAuth()
composable
TitusKirch commented
But setUser set only the users and does not update the user in directus or did i understand you wrong?
Intevel commented
Ah no, sorry you are right. I understand you wrong. I reopen this issue.
sandros94 commented
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.