mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 02:47:46 +00:00
added auth middleware
This commit is contained in:
8
server/types/Auth.ts
Normal file
8
server/types/Auth.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user