add basic controller auth

This commit is contained in:
rafiarrafif
2025-05-07 23:56:18 +07:00
parent fb1654e048
commit cb7757a83b
8 changed files with 22 additions and 3 deletions

View File

@ -1,8 +1,8 @@
import jwt from "jsonwebtoken";
import { Context } from "elysia";
import { JWTAuthToken } from "./types";
import { returnErrorResponse } from "../../callback/httpResponse";
import { parse } from "cookie";
import { returnErrorResponse } from "../../../callback/httpResponse";
/**
* Verifies the authentication cookie from the request header.