Libraries 2026
Auth0 Client
An Auth0 Management and Authentication API client for Elixir, built on Req.
Auth0 Client is a fork of Samar Dhwoj Acharya’s auth0_ex, rebuilt on Req and renamed throughout: the repository, the OTP application, the module namespace, and the config key are all auth0_client.
What changed
It is not drop-in compatible with the upstream. The HTTP client is Req rather than HTTPoison, every failure returns a single Auth0Client.Error struct, and the deprecated Login, Rule, and Blacklist modules are gone. Migrating means renaming Auth0Ex to Auth0Client, renaming the :auth0_ex config key to :auth0_client, and reading the error-handling guide.
What it covers
Every Management resource is a module under Auth0Client.Management: User, Role, Organization, Connection, Action, Client, ClientGrant, Log, Session, Tenant, Ticket, and the rest. A call reads like the API it wraps:
Auth0Client.Management.User.all(%{q: "email:*@example.com"})
#=> {:ok, [%{"user_id" => "auth0|abc123", ...}]}
Tokens are fetched and renewed for you. The Authentication API lives under Auth0Client.Authentication, with guides for the authorization code flow, PKCE, passwordless login, signup, logout, MFA enrolment and completion, organizations, RBAC, SCIM provisioning, and custom domains.
The library covers a subset of Auth0’s API and deliberately does not wrap endpoints Auth0 has deprecated or retired. The README compares coverage with auth0_ex and auth0_api.
Credit
The original library is techgaun/auth0_ex, written by Samar Dhwoj Acharya and published on Hex as auth0_ex. The resource modules and the API design started there.
This fork keeps the shape and changes the foundation: Req instead of HTTPoison, one error type instead of many shapes, the deprecated modules removed, and the guides rewritten around the current API.
Status
Published on Hex as auth0_client (1.2.1). The changelog records each release, and the roadmap says what is implemented, missing, and deliberately excluded.