Next.js Discord

Discord Forum

authjs session update in client component

Barbary Lion posted this in #help-forum
Open in Discord
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

Ashy Storm-Petrel
I had the same question. This method seems to work