added auth middleware

This commit is contained in:
Milo Schwartz
2024-10-02 23:54:14 -04:00
parent 7dbf4307e7
commit 942dbd8e56
4 changed files with 44 additions and 0 deletions

8
server/types/Auth.ts Normal file
View File

@@ -0,0 +1,8 @@
import { Request } from "express";
import { User } from "@server/db/schema";
import { Session } from "lucia";
export interface AuthenticatedRequest extends Request {
user: User;
session: Session;
}