How to update session
https://next-auth.js.org/getting-started/client#updating-the-session
Similar to nextAuth, is there a way to trigger the session update?
Client API | NextAuth.js
The NextAuth.js client library makes it easy to interact with sessions from React applications.
7 Replies
Will it update even if i use secondary db redis?
Because i was created one thread related to this
Hi, thanks for responding, NextAuth supports following, unlike refetch, this way we can update the session directly
you can use
authClient.updateUser
yesThen this will work i guess
I'm updating additional fields in user table. And previously i was able to get updated value in session only after logout and login
Need to try this
What are you building?
I'm just building application which is having onboarding form
There dob, address few fields are there
Once user saved that i need it back with updated data
I added additional fields in user table