added auth middleware

This commit is contained in:
Milo Schwartz 2024-10-02 23:54:14 -04:00
parent 7dbf4307e7
commit 942dbd8e56
No known key found for this signature in database
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;
}