Skip to content

Commit 105ec9f

Browse files
zgavin1jhodapp
andcommitted
fix variable declaration src/middleware.ts
Co-authored-by: Jim Hodapp <james.hodapp@gmail.com>
1 parent e0fdf0b commit 105ec9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default async function middleware(req: NextRequest) {
1717

1818
// 3. Decrypt the session from the cookie
1919
const sessionCookie = req.cookies.get("id");
20-
let session = sessionCookie?.value;
20+
const session = sessionCookie?.value;
2121

2222
// 4. Redirect to / if the user is not authenticated
2323
if (isProtectedRoute && !session) {

0 commit comments

Comments
 (0)