I have a situation where I have to update Next Auth Session every time a page reloads so that the "Users" Details can be updated.
I need to call API each time a page reloads to get the Users data and then update Next Auth Session.
I have a situation where I have to update Next Auth Session every time a page reloads so that the "Users" Details can be updated.
I need to call API each time a page reloads to get the Users data and then update Next Auth Session.
Next Auth provides a
session
callback so that you can use it to execute some code every time the session gets requested. What i'd do is: