Not able to set cookies in Vercel edge-middleware when using withMiddlewareAuthRequired()
#1253
Closed
6 tasks done
Labels
bug
Something isn't working
Checklist
Description
Following the middleware examples - setting up a custom cookie works locally but has no effect when deployed to Vercel Edge.
Removing
withMiddlewareAuthRequired
and replicating its functionality fixes the issue - cookies are added as expected.Reproduction
withMiddlewareAuthRequired
Additional context
Something similar is described here: #1045 (comment)
nextjs-auth0 version
2.6.2
Next.js version
13.4.5
Node.js version
18.16.0
The text was updated successfully, but these errors were encountered: