How to correctly update the user info?
I want to update specific fields, but the TypeScript tells me to provide all additional fields.

6 Replies
If you're on a server already, you should just use your ORM since currently
updateUser
would trigger additional session fetch.I did it before this approach. But the session isn’t updated unless using router.refresh()
try
1.2.2-beta.1
Thanks for the response! If I would like to use the ORM approach:
How to invalidate the session cache properly? Or should I stick with
router.refresh()
in Next.js?if you're fetching the session on the client, you can just refetch on response.
I'm fetching it like this.