Skip to content
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

feat: Add ability to customize client-side fetch calls #12204

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

Conversation

willwill96
Copy link

☕️ Reasoning

Currently, if you have your next-auth SessionProvider is configured to point to a separate domain from the next.js app, next-auth related cookies will not be sent in your requests. In order to send cookies on cross-origin request, you have to use { credentials: 'include' } when you make your fetch request. This approach allows users to pass custom fetch options that will be passed to the underlying fetch calls.

🧢 Checklist

  • Documentation
  • Tests - I'm having trouble running tests locally, I guess I'm missing some env vars needed for local but I'm not sure what they all are.
  • Ready to be merged

🎫 Affected issues

(These are discussions, not issues):

Fixes: #12203
Fixes: #8799

📌 Resources

Copy link

vercel bot commented Nov 9, 2024

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 Nov 9, 2024 2:48am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Nov 9, 2024 2:48am

Copy link

vercel bot commented Nov 9, 2024

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

A member of the Team first needs to authorize it.

Copy link

stale bot commented Jan 21, 2025

It looks like this issue did not receive any activity for 60 days. It will be closed in 7 days if no further activity occurs. If you think your issue is still relevant, commenting will keep it open. Thanks!

@stale stale bot added the stale Did not receive any activity for 60 days label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next-auth stale Did not receive any activity for 60 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant