We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e638d4f commit 76231e1Copy full SHA for 76231e1
src/middleware.ts
@@ -17,7 +17,7 @@ export default async function middleware(req: NextRequest) {
17
18
// 3. Decrypt the session from the cookie
19
const sessionCookie = req.cookies.get("id");
20
- let session = sessionCookie?.value;
+ const session = sessionCookie?.value;
21
22
// 4. Redirect to / if the user is not authenticated
23
if (isProtectedRoute && !session) {
0 commit comments