mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
fix: typo (#358)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user