Skip to content

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
@vercel
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 May 24, 2025 1:32pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview May 24, 2025 1:32pm

@vercel
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
@codylittle
Copy link
Author

Hey @ThangHuuVu, anything else you'd like to see in the PR prior to reviewing? Happy to add additional tests if required.

@codylittle
Copy link
Author

@ThangHuuVu does this align with the direction of the package? Should this be moved to a flag to ensure backwards compatibility?

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