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

Remove unnecessary wrapping with NodeNext(Request|Response) #1956

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Mar 9, 2025

Description

It confused me why I wrapped req and res with NodeNextRequest and NodeNextResponse even though it wasn't needed.

It's only needed when one wants to access parsed cookies via request.cookies else they are just available as a string under request.headers.cookie.

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

7. Tested email login, adding a nostr account and switching between users and anon.

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

@ekzyis ekzyis mentioned this pull request Mar 9, 2025
1 task
@huumn huumn merged commit 7b72574 into master Mar 9, 2025
6 checks passed
@huumn huumn deleted the remove-next-auth-req-res-wrapper branch March 9, 2025 15:53
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

Successfully merging this pull request may close these issues.

2 participants