You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on an application, in which I save the user data in the session after logging in. I use next-auth to have control over the data and the pages that a user can see or not see.
I have a custom backend which I call inside authorize to do the login. So far so good, my problem is that I have a page with information about a user, the user can change this information (email, password, dates, etc). This action affects my custom backend because the POST call that modifies this data is obviously in my backend. But I also want to mute or modify it in my session without having to close session and login again.
Is there any way to do this?
I have seen some issues in the repository but almost all of them are oriented to refresh the token and not mutate it with an action from the front-end.
Question 💬
I am working on an application, in which I save the user data in the session after logging in. I use next-auth to have control over the data and the pages that a user can see or not see.
I have a custom backend which I call inside authorize to do the login. So far so good, my problem is that I have a page with information about a user, the user can change this information (email, password, dates, etc). This action affects my custom backend because the POST call that modifies this data is obviously in my backend. But I also want to mute or modify it in my session without having to close session and login again.
Is there any way to do this?
I have seen some issues in the repository but almost all of them are oriented to refresh the token and not mutate it with an action from the front-end.
Thanks!
How to reproduce ☕️
This is my
[...nextauth].js
file:The structure of my session is:
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered: