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 want to access the session object inside of a sign in event, for the purpose of modifying the session in the database due to a specific trigger, like a specific provider being used.
Example use case:
A specific provider such as Passkey provider was used to successfully sign in. Now in the database I want to modify the session to have an attribute twoFactorVerified with the current date.
Currently this isn't possible without doing some crazy global variable monkey patching.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to access the session object inside of a sign in event, for the purpose of modifying the session in the database due to a specific trigger, like a specific provider being used.
Example use case:
A specific provider such as Passkey provider was used to successfully sign in. Now in the database I want to modify the session to have an attribute
twoFactorVerified
with the current date.Currently this isn't possible without doing some crazy global variable monkey patching.
Beta Was this translation helpful? Give feedback.
All reactions