This commit is contained in:
2025-07-08 19:03:34 +08:00
parent caa855717f
commit 789ba73f81
4 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import type { Secret, SignOptions } from 'jsonwebtoken';
// Generate JWT token
function generateToken(userId: string): string {
const secret = process.env.JWT_SECRET;
const secret = "pandora";
if (!secret) {
throw new Error('JWT_SECRET is not configured');
}
@@ -303,7 +303,7 @@ export const authController = {
}
try {
const decoded = jwt.verify(refreshToken, process.env.JWT_SECRET!) as any;
const decoded = jwt.verify(refreshToken, "pandora") as any;
const session = await prisma.session.findFirst({
where: {