Skip to content

feat(core): Use AdapterSession retruned from updateSession function #12864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

codylittle
Copy link

@codylittle codylittle commented Apr 10, 2025

☕️ Reasoning

Currently the updateSession function within Adapters has the option to return an AdapterSession, yet this session is just discarded. The ability to use this returned session allows for further customisation of business-specific logic within custom adapters without impacting existing available adapters.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

Note: I have updated session tests, how I am unable to run them as-is due to incorrect relative file paths. Updating the file paths by hand results in passing tests, but I have not committed these updates as I believe I like have local configuration incorrect.

Happy to discuss further if required.

@codylittle codylittle requested a review from ThangHuuVu as a code owner April 10, 2025 07:09
Copy link

vercel bot commented Apr 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2025 7:19am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2025 7:19am

Copy link

vercel bot commented Apr 10, 2025

@codylittle is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added adapters Changes related to the core code concerning database adapters core Refers to `@auth/core` labels Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Changes related to the core code concerning database adapters core Refers to `@auth/core`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant