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 was wondering if it’s possible to rotate the session password while preserving the previous sessions for the duration of the set maxAge? For example, if I have a maxAge of 1 week and rotate my password, I would first try to retrieve the session with the new password. If that fails, I would then try to retrieve it using the previous secret and update the session cookie with the new secret.
Currently, if I try to retrieve my session and the password has changed, the session is deleted, so I can’t retrieve it using the previous secret.
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
-
Hi!
I was wondering if it’s possible to rotate the session password while preserving the previous sessions for the duration of the set maxAge? For example, if I have a maxAge of 1 week and rotate my password, I would first try to retrieve the session with the new password. If that fails, I would then try to retrieve it using the previous secret and update the session cookie with the new secret.
Currently, if I try to retrieve my session and the password has changed, the session is deleted, so I can’t retrieve it using the previous secret.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions