Fix jwt-token

This commit is contained in:
2025-09-15 06:12:28 +02:00
parent 861801b35a
commit c29a5aed67
2 changed files with 4 additions and 2 deletions

View File

@@ -88,6 +88,8 @@ describe('Authentication Middleware', () => {
it('should accept valid JWT token and set user data', async () => {
const user = await createTestUser({ username: 'testuser', role: 'admin' });
console.log('Created user:', user.toJSON()); // Debug log
const token = jwt.sign(
{
userId: user.id,