Skip to content
Eight Effect-native API SDKs are live.Explore the catalog
Distilled
Esc
navigateopen⌘Jpreview
On this page

Auth0 SDK

Install, authenticate, and administer Auth0 with Effect-native Management API v2 operations.

Public package OpenAPI 3.1 451 operations

The Auth0 SDK pins the official Management API v2 contract and keeps tenant addressing, bearer authentication, secret redaction, errors, and retries in the handwritten provider layer.

Install

npm install @kevinmichaelchen/distilled-auth0 effect
pnpm add @kevinmichaelchen/distilled-auth0 effect
bun add @kevinmichaelchen/distilled-auth0 effect

Authentication

Variable Purpose
AUTH0_DOMAIN Tenant domain, such as acme.us.auth0.com
AUTH0_MANAGEMENT_TOKEN Management API bearer token with the required scopes

Quickstart

Find blocked users requiring support or security follow-up:

import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
import {
  CredentialsFromEnv,
  getUsers,
} from "@kevinmichaelchen/distilled-auth0";

const Auth0Live = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);

const program = getUsers({
  q: "blocked:true",
  search_engine: "v3",
  fields: "user_id,email,blocked,last_login",
  include_fields: true,
  per_page: 50,
});

const users = await Effect.runPromise(Effect.provide(program, Auth0Live));

Source and package

Last updated on July 15, 2026

Was this page helpful?