fix: typo (#358)

This commit is contained in:
Alan Chou
2023-11-03 22:26:01 +08:00
committed by GitHub
parent 888a13524a
commit a9077215a0

View File

@@ -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));
}