mirror of
https://github.com/wireadmin/wireadmin
synced 2025-06-26 18:28:06 +00:00
fix
This commit is contained in:
@@ -3,9 +3,7 @@ import { verifyToken } from '$lib/auth';
|
||||
import 'dotenv/config';
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
const { HASHED_PASSWORD } = process.env;
|
||||
|
||||
if (!!HASHED_PASSWORD && !AUTH_EXCEPTION.includes(event.url.pathname)) {
|
||||
if (!AUTH_EXCEPTION.includes(event.url.pathname)) {
|
||||
const token = event.cookies.get('authorization');
|
||||
const token_valid = await verifyToken(token ?? '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user