How to disable authClient.updateUser({ ... })

Hi folks, I'm looking to prevent the user from changing their name or profile picture with the authClient.updateUser() function.

My current idea would be to use a database hook on user update to prevent the name or profile picture changing, but I'm unsure if there's a better way to do this.
Solution
I've opted to go for the route of disabling the /update-user route in my config:
disabledPaths: ["/update-user"],
Was this page helpful?