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
Let the user access all the data stored in the adapter's session in the session callback
Non-Goals
No response
Background
There might be data you want to add to your session and have that returned from getServerSession() but at the moment the session callback receives only session.expires from the adapter's session
Proposal
When the strategy is set to "database" Pass the both the session and user from getSessionAndUser() to the session callback.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Let the user access all the data stored in the adapter's session in the session callback
Non-Goals
No response
Background
There might be data you want to add to your session and have that returned from
getServerSession()
but at the moment the session callback receives onlysession.expires
from the adapter's sessionProposal
When the strategy is set to
"database"
Pass the both the session and user fromgetSessionAndUser()
to the session callback.Beta Was this translation helpful? Give feedback.
All reactions