@distilled.cloud/workos
v1.0.0-rc.15
Published
Keywords
Readme
@distilled.cloud/workos
Effect-native SDK for workos.
Installation
npm install @distilled.cloud/workos effectQuick start
import { Effect, Layer } from "effect";
import * as FetchHttpClient from "effect/http/FetchHttpClient";
import * as Workos from "@distilled.cloud/workos";
const program = Effect.gen(function* () {
const result = yield* Workos.ListOrganizationsController({});
return result;
});
const Live = Layer.mergeAll(
FetchHttpClient.layer,
Workos.CredentialsFromEnv,
Workos.WorkosProtocol,
);
program.pipe(Effect.provide(Live), Effect.runPromise);Auth
Required: WORKOS_API_KEY. Optional: WORKOS_API_URL. Sent as Authorization: Bearer.
