diff --git a/backend/src/auth/auth.service.spec.ts b/backend/src/auth/auth.service.spec.ts index 4164ad7..6564cb8 100644 --- a/backend/src/auth/auth.service.spec.ts +++ b/backend/src/auth/auth.service.spec.ts @@ -1,3 +1,7 @@ +jest.mock("uuid", () => ({ + v4: jest.fn(() => "mocked-uuid"), +})); + import { Test, TestingModule } from "@nestjs/testing"; jest.mock("@noble/post-quantum/ml-kem.js", () => ({ diff --git a/frontend/src/types/auth.ts b/frontend/src/types/auth.ts index 401a652..0056339 100644 --- a/frontend/src/types/auth.ts +++ b/frontend/src/types/auth.ts @@ -13,7 +13,7 @@ export interface RegisterPayload { export interface AuthStatus { isAuthenticated: boolean; user: null | { - id: string; + uuid: string; username: string; displayName?: string; avatarUrl?: string;