fix: restrict user email visibility

Co-Authored-By: gpt-5.6-sol <noreply@openai.com>
This commit was merged in pull request #17.
This commit is contained in:
2026-07-23 23:18:59 +02:00
committed by codinget
co-authored by Codex
parent 1e10391e20
commit 0355bd0b2e
4 changed files with 232 additions and 5 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ async function getApiDb() {
email: AUTH_EMAIL,
name: "API Auth User",
password: pw,
flags: {},
// The shared backend contract suite exercises unrestricted user lookup,
// which the HTTP API now reserves for global administrators.
flags: { admin: true },
});
const server = await createTestServer(sqliteDb);
const authHeader = "Basic " + btoa(`${AUTH_EMAIL}:${AUTH_PASSWORD}`);