From a9077215a0f83ff865f7e780c84463625c45e06a Mon Sep 17 00:00:00 2001 From: Alan Chou Date: Fri, 3 Nov 2023 22:26:01 +0800 Subject: [PATCH] fix: typo (#358) --- dashboard/final-example/auth.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/final-example/auth.config.ts b/dashboard/final-example/auth.config.ts index 4fa7a84..32ad0b7 100644 --- a/dashboard/final-example/auth.config.ts +++ b/dashboard/final-example/auth.config.ts @@ -14,7 +14,7 @@ export const authConfig = { const isOnDashboard = nextUrl.pathname.startsWith('/dashboard'); if (isOnDashboard) { if (isLoggedIn) return true; - return false; // Redirect unathenticated users to login page + return false; // Redirect unauthenticated users to login page } else if (isLoggedIn) { return Response.redirect(new URL('/dashboard', nextUrl)); }