Cookie Deletion Issue in the Middleware #66050
Unanswered
ravindrakanapuram
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,

I have updated the middleware in my application as shown in the image below:Middleware.ts
Once I log in, I can successfully generate cookies and access the application. However, if I manually delete the cookies and refresh the page, I encounter an error page instead of being redirected to the /login page.

Beta Was this translation helpful? Give feedback.
All reactions