Replies: 6 comments 1 reply
-
@lavcraft, I'm very interested in this feature and have seen other discussion posts asking for the same. Any progress here -- willing to pitch in if you have a branch. |
Beta Was this translation helpful? Give feedback.
-
Related: #3116 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
@balazsorban44 thanks. It's related, but not similar one. In this case, we don't need multiple sessions info in stateless token. Only need current session during authenticating process for merging. For example:
|
Beta Was this translation helpful? Give feedback.
-
Would be really helpful to have more control over the session with the option for a previous session. Currently working on an Auth0 implementation where MFA requires a different token. Doing any kind of new login via next auth replaces the old session, where it would be ideal to save the MFA session along with the current session. |
Beta Was this translation helpful? Give feedback.
-
Hey! Any update on this? :) |
Beta Was this translation helpful? Give feedback.
-
Progress on this #6337 (comment) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description 📓
Provide current session variable in callbacks for access information stored in session and merge into new.
It's useful in cases, when you need to get some tokens from multiple service for provide integration. For example — you need to create documents in sharepoint and attach it to google calendars. In this case, i need in one time and one place two tokens — from google and from azure.
This ability in callbacks is very useful for cover case above, and accumulate all user accounts (with different emails in place, when i confident about this merge (but if it main flow for authenticated user, like "attach google account" - why not?)
According to Discussion about handling current session — it's not so hard to implement feature :)
How to reproduce ☕️
For examples usage (see current* args):
Or
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
Beta Was this translation helpful? Give feedback.
All reactions