This commit is contained in:
2025-09-15 17:28:12 +08:00
parent 185bc88e21
commit 318e6f56a9
9 changed files with 887 additions and 577 deletions

View File

@@ -88,7 +88,8 @@ router.post('/login', async (req, res) => {
userId: agent.user_id,
agentId: agent.agent_id,
phone: agent.phone,
role: 'agent'
role: 'agent',
userType: agent.user_type,
},
JWT_SECRET,
{ expiresIn: '24h' }