MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / createIdpUser

Function createIdpUser

apps/host-selfhost/src/auth/sso.test.ts:34–39  ·  view source on GitHub ↗
(email: string, firstName: string)

Source from the content-addressed store, hash-verified

32}).then((r) => r.json() as Promise<{ client_id: string; client_secret: string }>);
33
34const createIdpUser = (email: string, firstName: string) =>
35 fetch(`${idp.url}/api/v1/users`, {
36 method: "POST",
37 headers: { "content-type": "application/json", authorization: "SSWS test" },
38 body: JSON.stringify({ profile: { login: email, email, firstName, lastName: "User" } }),
39 });
40await createIdpUser("alice@example.com", "Alice");
41await createIdpUser("mallory@evil.test", "Mallory");
42

Callers 1

sso.test.tsFile · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected