diff --git a/dashboard/final-example/auth.config.ts b/dashboard/final-example/auth.config.ts index 4fa7a849..32ad0b72 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)); }