Promote dev → uat: SSO bridge endpoint + role scope (GRO-1866) #96

Merged
The Dogfather merged 14 commits from promote/dev-to-uat-gro-1866 into uat 2026-05-28 22:23:33 +00:00
Showing only changes of commit b96b6c06fc - Show all commits
+10 -11
View File
@@ -1,5 +1,6 @@
import { describe, it, expect, vi, beforeEach } from "vitest";
import { Hono } from "hono";
import { getAuth } from "../lib/auth.js";
const CLIENT_ID = "550e8400-e29b-41d4-a716-446655440001";
const CLIENT_EMAIL = "alice@example.com";
@@ -71,17 +72,15 @@ vi.mock("@groombook/db", () => {
return makeChainable([]);
},
}),
insert: () => ({
into: (table: { _name: string }) => ({
values: (vals: Record<string, unknown>) => ({
returning: () => {
if (table._name === "impersonationSessions") {
insertedSession = { id: "new-session-001", ...vals };
return [insertedSession];
}
return [];
},
}),
insert: (table: { _name: string }) => ({
values: (vals: Record<string, unknown>) => ({
returning: () => {
if (table._name === "impersonationSessions") {
insertedSession = { id: "new-session-001", ...vals };
return [insertedSession];
}
return [];
},
}),
}),
}),