mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(security): harden auth and outbound fetches
This commit is contained in:
@@ -63,7 +63,7 @@ vi.mock("../../../apps/api/src/routes/progress.js", () => ({
|
||||
}));
|
||||
|
||||
vi.mock("../../../apps/api/src/plugins/auth.js", () => ({
|
||||
getAuthUser: vi.fn(() => null),
|
||||
getAuthUser: vi.fn(() => ({ id: "user-1", username: "test", role: "admin" })),
|
||||
}));
|
||||
|
||||
vi.mock("../../../apps/api/src/lib/analytics.js", () => ({
|
||||
|
||||
Reference in New Issue
Block a user