feat: migrate to Better Auth for authentication, update environment variables, and enhance database schema with accounts and sessions

This commit is contained in:
2025-12-20 11:00:00 +00:00
parent 377836d1fa
commit 7bff6b0f91
13 changed files with 183 additions and 205 deletions

View File

@@ -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;
};
};
}
}
}