feat: make it possible to update the session#7056
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
🎉 Experimental release published 📦️ on npm! pnpm add next-auth@0.0.0-pr.7056.ced446b7yarn add next-auth@0.0.0-pr.7056.ced446b7npm i next-auth@0.0.0-pr.7056.ced446b7 |
… into feat/update-session
|
@ThangHuuVu Could you please tell me when this feature will be available? I am currently using |
I got this when updated to |
|
Thank you, @balazsorban44, for addressing this issue. I previously had to resort to some unconventional workarounds. For those interested in integrating this fix, please refer to the updated documentation at: https://next-auth.js.org/getting-started/client#updating-the-session. |
Is there an issue tracking this or a PR in progress? |
It is possible to update the session from the server using getServerSession? I'm currently doing it calling again "getServerSession" with new params, but it would be nice to have a better "official" support. |
Integrates #7056 into `@auth/core`
* feat: add update session to core Integrates #7056 into `@auth/core` * resolve default user after jwt callback
* feat: add update session to core Integrates #7056 into `@auth/core` * resolve default user after jwt callback
|
Would it be possible to create something like getSession(), but updateSession() that doesn't need to be imported from a hook and can be imported to update sessions? It would be helpful to implement things like fetch interceptors for refresh token rotations. |
Implements #3941 (comment)
@auth/core(can be done in a separate PR)@auth/core. We don't currently have a good E2E setup. 😬🎫 Affected issues
#596, #2208, #2129