Finish Project
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import {NextRequest, NextResponse} from "next/server";
|
||||
import {verifySession} from "@/components/DAL/dal";
|
||||
|
||||
export default async function proxy(req: NextRequest) {
|
||||
|
||||
const auth_is_valid = true // (await verifySession()).isAuth;
|
||||
const auth_is_valid = (await verifySession()).isAuth;
|
||||
const route_is_login = req.nextUrl.pathname === "/login"
|
||||
|
||||
if (route_is_login && auth_is_valid) { // Redirect User to Home if Login already acquired
|
||||
|
||||
Reference in New Issue
Block a user