Return the supabaseResponse object unchanged from middleware
Creating a new NextResponse without copying Supabase cookies breaks session management and causes random logouts.
Why This Matters
The supabaseResponse object contains updated session cookies. If you create a new response without copying them, the browser and server go out of sync.
Tags
nextjssupabaseAuthentication
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.