Fix jwt-token

This commit is contained in:
2025-09-15 06:30:17 +02:00
parent 9413d45a10
commit 2392fbd8ed
2 changed files with 8 additions and 14 deletions

View File

@@ -129,7 +129,11 @@ async function createTestUser(userData = {}) {
});
}
// Generate a simple UUID-like string for testing
const testId = 'test-' + Date.now() + '-' + Math.random().toString(36).substr(2, 9);
const defaultUserData = {
id: testId, // Use explicit test ID
username: 'testuser',
email: 'test@example.com',
password_hash: '$2b$10$example.hash.for.testing.purposes.only',