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

Function runAuthenticate

apps/cloud/src/auth/workos.node.test.ts:177–191  ·  view source on GitHub ↗
(sessionData: string, baseUrl: string)

Source from the content-addressed store, hash-verified

175};
176
177const runAuthenticate = (sessionData: string, baseUrl: string) => {
178 Object.assign(env, {
179 WORKOS_API_KEY: API_KEY,
180 WORKOS_CLIENT_ID: CLIENT_ID,
181 WORKOS_COOKIE_PASSWORD: COOKIE_PASSWORD,
182 WORKOS_API_URL: baseUrl,
183 });
184
185 return Effect.runPromise(
186 Effect.gen(function* () {
187 const workos = yield* WorkOSClient;
188 return yield* workos.authenticateSealedSession(sessionData);
189 }).pipe(Effect.provide(WorkOSClient.Default)),
190 );
191};
192
193describe("authenticateSealedSession", () => {
194 it("validates a sealed session locally with the cached JWKS", async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected