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

Function withRefreshedSession

e2e/cloud/spec-update-convergence.test.ts:128–134  ·  view source on GitHub ↗
(identity: Identity, response: Response)

Source from the content-addressed store, hash-verified

126 });
127
128const withRefreshedSession = (identity: Identity, response: Response): Identity => {
129 const refreshed = (response.headers.getSetCookie?.() ?? [])
130 .find((header) => header.startsWith("wos-session="))
131 ?.split(";")[0];
132 if (!refreshed) throw new Error("response did not refresh the session cookie");
133 return { ...identity, headers: { cookie: refreshed } };
134};
135
136/** Invite `member` into `admin`'s org and accept — the real invite flow. */
137const joinOrg = (target: TargetShape, admin: Identity, member: Identity) =>

Callers 1

joinOrgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected