Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nextauthjs/next-auth@179c08d
Spent two hours on this.![:upside_down_cry:](https://camo.githubusercontent.com/471a57827539af23893d0ebb2235dedc65a15f9cf573e557740786b51a9d7f24/68747470733a2f2f656d6f6a692e736c61636b2d656467652e636f6d2f5430434151303054552f7570736964655f646f776e5f6372792f666565656661626262636161343036372e706e67)
The
x-forwarded-proto
header returnshttps
, butURL#protocol
returnshttps:
.This made our cookies not being properly set in secure (HTTPS) environments, causing various issues when deployed.
Fixes #28
You can run
pnpm up @auth/nextjs
in your own project to apply this fix.