feat: migrate to Better Auth for authentication, update environment variables, and enhance database schema with accounts and sessions
This commit is contained in:
14
Backend/types/express.d.ts
vendored
14
Backend/types/express.d.ts
vendored
@@ -1,9 +1,17 @@
|
||||
import type { JwtPayload } from '../utils/jwt';
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
interface Request {
|
||||
user?: JwtPayload;
|
||||
auth?: {
|
||||
user: {
|
||||
id: string;
|
||||
email: string;
|
||||
name?: string | null;
|
||||
};
|
||||
session: {
|
||||
id: string;
|
||||
userId: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user