fix(gro-1866): add session-from-auth portal endpoint + role scope #93

Merged
The Dogfather merged 3 commits from fix/gro-1866-sso-bridge into dev 2026-05-28 18:46:44 +00:00
Showing only changes of commit b96b6c06fc - Show all commits
+2 -3
View File
@@ -1,5 +1,6 @@
import { describe, it, expect, vi, beforeEach } from "vitest"; import { describe, it, expect, vi, beforeEach } from "vitest";
import { Hono } from "hono"; import { Hono } from "hono";
import { getAuth } from "../lib/auth.js";
const CLIENT_ID = "550e8400-e29b-41d4-a716-446655440001"; const CLIENT_ID = "550e8400-e29b-41d4-a716-446655440001";
const CLIENT_EMAIL = "alice@example.com"; const CLIENT_EMAIL = "alice@example.com";
@@ -71,8 +72,7 @@ vi.mock("@groombook/db", () => {
return makeChainable([]); return makeChainable([]);
}, },
}), }),
insert: () => ({ insert: (table: { _name: string }) => ({
into: (table: { _name: string }) => ({
values: (vals: Record<string, unknown>) => ({ values: (vals: Record<string, unknown>) => ({
returning: () => { returning: () => {
if (table._name === "impersonationSessions") { if (table._name === "impersonationSessions") {
@@ -84,7 +84,6 @@ vi.mock("@groombook/db", () => {
}), }),
}), }),
}), }),
}),
impersonationSessions, impersonationSessions,
clients, clients,
staff, staff,