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

Million removes request headers #1176

Open
1 task
sasicodes opened this issue Feb 10, 2025 · 2 comments
Open
1 task

Million removes request headers #1176

sasicodes opened this issue Feb 10, 2025 · 2 comments

Comments

@sasicodes
Copy link

sasicodes commented Feb 10, 2025

What version of million are you using?

3.1.0

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

pnpm

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

hey, i experienced weird issue with nextjs, better-auth and million/lint. when using better-auth in my nextjs app (which has MillionLint wrapper in config), the headers in the request been removed for some reason and social auth callback failed bc of that.
Image

export default MillionLint .next({ rsc: true })(nextConfig);

removing this MillionLint.next wrapper - fixed it.

What's the expected result?

It should not remove headers.

Link to Minimal Reproducible Example

https://github.com/better-auth/better-auth/tree/main/demo/nextjs (we need to wrap next config with MillionLint)

Participation

  • I am willing to submit a pull request for this issue.
Copy link

Thanks for opening this issue! A maintainer will review it soon.

@ItaloMedici
Copy link

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants