mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-02 17:14:55 +02:00
added auth middleware
This commit is contained in:
parent
7dbf4307e7
commit
942dbd8e56
4 changed files with 44 additions and 0 deletions
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue