- Add /forgot-password and /reset-password pages (full password reset flow) - Add 'Forgot password?' link on login page - Fix register.tsx: add explicit window.location fallback after signUp - Rename commissionerAuditLog.actorClerkId → actorUserId (migration 0084) and update all references in model, routes, components, and tests - Rewrite docs/agents/auth.md to document BetterAuth (removes all Clerk refs) - Update test fixtures and schema comments to remove Clerk ID references; use UUID-format IDs throughout test data - Update docs/agents/domain-models.md ownerId description Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
66 lines
1.4 KiB
TypeScript
66 lines
1.4 KiB
TypeScript
export const mockUser = {
|
|
id: 'user-uuid-1',
|
|
clerkId: null,
|
|
email: 'user1@example.com',
|
|
emailVerified: true,
|
|
username: 'user1',
|
|
displayName: 'User One',
|
|
firstName: 'User',
|
|
lastName: 'One',
|
|
imageUrl: null,
|
|
isAdmin: false,
|
|
timezone: null,
|
|
createdAt: new Date('2025-01-01'),
|
|
updatedAt: new Date('2025-01-01'),
|
|
};
|
|
|
|
export const mockAdminUser = {
|
|
id: 'admin-uuid-1',
|
|
clerkId: null,
|
|
email: 'admin@example.com',
|
|
emailVerified: true,
|
|
username: 'admin',
|
|
displayName: 'Admin User',
|
|
firstName: 'Admin',
|
|
lastName: 'User',
|
|
imageUrl: null,
|
|
isAdmin: true,
|
|
timezone: null,
|
|
createdAt: new Date('2025-01-01'),
|
|
updatedAt: new Date('2025-01-01'),
|
|
};
|
|
|
|
export const mockUsers = [
|
|
mockUser,
|
|
{
|
|
id: 'user-uuid-2',
|
|
clerkId: null,
|
|
email: 'user2@example.com',
|
|
emailVerified: true,
|
|
username: 'user2',
|
|
displayName: 'User Two',
|
|
firstName: 'User',
|
|
lastName: 'Two',
|
|
imageUrl: null,
|
|
isAdmin: false,
|
|
timezone: null,
|
|
createdAt: new Date('2025-01-01'),
|
|
updatedAt: new Date('2025-01-01'),
|
|
},
|
|
{
|
|
id: 'user-uuid-3',
|
|
clerkId: null,
|
|
email: 'user3@example.com',
|
|
emailVerified: true,
|
|
username: 'user3',
|
|
displayName: 'User Three',
|
|
firstName: 'User',
|
|
lastName: 'Three',
|
|
imageUrl: null,
|
|
isAdmin: false,
|
|
timezone: null,
|
|
createdAt: new Date('2025-01-01'),
|
|
updatedAt: new Date('2025-01-01'),
|
|
},
|
|
mockAdminUser,
|
|
];
|