Skip to content

Million removes request headers #1176

@sasicodes

Description

@sasicodes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions