Fix jwt-token

This commit is contained in:
2025-09-15 20:53:26 +02:00
parent 3f1c59727b
commit 77178d2aaa
2 changed files with 13 additions and 5 deletions

View File

@@ -147,8 +147,8 @@ async function createTestUser(userData = {}) {
}
const defaultUserData = {
username: 'testuser',
email: 'test@example.com',
username: userData.username || `testuser${Date.now()}${Math.floor(Math.random() * 1000)}`,
email: userData.email || `test${Date.now()}@example.com`,
password_hash: '$2b$10$dummyHashForTestingOnly',
role: 'admin',
tenant_id: tenant.id,