fix jwt
This commit is contained in:
@@ -64,7 +64,7 @@ export const adminController = {
|
||||
username: admin.username,
|
||||
role: admin.isAdmin ? 'admin' : 'user'
|
||||
},
|
||||
process.env.JWT_SECRET!,
|
||||
"pandora",
|
||||
{ expiresIn: '24h' }
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user