Skip to content

Commit c3be4fc

Browse files
committed
chore: fixes counting in comments
Fixes counting so it continues to increase 1, 2, 3, 4, 5
1 parent 6c47eaa commit c3be4fc

File tree

1 file changed

+2
-2
lines changed
  • docs/02-app/01-building-your-application/09-authentication

1 file changed

+2
-2
lines changed

docs/02-app/01-building-your-application/09-authentication/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,12 @@ export default async function middleware(req: NextRequest) {
10591059
const cookie = cookies().get('session')?.value
10601060
const session = await decrypt(cookie)
10611061

1062-
// 5. Redirect to /login if the user is not authenticated
1062+
// 4. Redirect to /login if the user is not authenticated
10631063
if (isProtectedRoute && !session?.userId) {
10641064
return NextResponse.redirect(new URL('/login', req.nextUrl))
10651065
}
10661066

1067-
// 6. Redirect to /dashboard if the user is authenticated
1067+
// 5. Redirect to /dashboard if the user is authenticated
10681068
if (
10691069
isPublicRoute &&
10701070
session?.userId &&

0 commit comments

Comments
 (0)