From c3be4fc3f6f91332f6d090bd6330e43cb8cfb7a7 Mon Sep 17 00:00:00 2001 From: Jordy Fontoura Date: Wed, 25 Sep 2024 11:10:17 -0300 Subject: [PATCH] chore: fixes counting in comments Fixes counting so it continues to increase 1, 2, 3, 4, 5 --- .../01-building-your-application/09-authentication/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/02-app/01-building-your-application/09-authentication/index.mdx b/docs/02-app/01-building-your-application/09-authentication/index.mdx index 933053d2e6f60..d9013731f13ca 100644 --- a/docs/02-app/01-building-your-application/09-authentication/index.mdx +++ b/docs/02-app/01-building-your-application/09-authentication/index.mdx @@ -1059,12 +1059,12 @@ export default async function middleware(req: NextRequest) { const cookie = cookies().get('session')?.value const session = await decrypt(cookie) - // 5. Redirect to /login if the user is not authenticated + // 4. Redirect to /login if the user is not authenticated if (isProtectedRoute && !session?.userId) { return NextResponse.redirect(new URL('/login', req.nextUrl)) } - // 6. Redirect to /dashboard if the user is authenticated + // 5. Redirect to /dashboard if the user is authenticated if ( isPublicRoute && session?.userId &&