Next.js Discord

Discord Forum

authjs session update in client component

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Avatar
Barbary LionOP
in user session I want to let user to upload a new image and this will replace the existing image in database, everything goes well but I need to logout and signin again in order to update session what to do ?

1 Reply

Avatar
Ashy Storm-Petrel
I had the same question. This method seems to work https://stackoverflow.com/a/77662431/9202450