Fix jwt-token
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user