Add result and job management APIs

This commit is contained in:
syntaxbullet
2026-06-17 14:19:30 +02:00
parent 99569d2cf3
commit b23d401a41
7 changed files with 176 additions and 5 deletions

View File

@@ -245,7 +245,7 @@ function hasValidCsrf(req: Request): boolean {
return Boolean(header && cookie && timingSafeEqual(header, cookie));
}
async function isAuthenticated(req: Request): Promise<boolean> {
export async function isAuthenticated(req: Request): Promise<boolean> {
const auth = parseCookies(req.headers.get("cookie")).get(AUTH_COOKIE);
if (auth && await verifyAuthCookie(auth)) return true;