Skip to main content
Code-based extensibility runs in the extensibility runtime: a secure, sandboxed, tenant-specific Node.js environment managed by Auth0. The Node.js version your code runs on is the runtime version. It determines which language features, built-in APIs, and npm modules are available to your code.

How it works

  1. Auth0 reaches an extensibility point, for example post-login.
  2. Auth0 loads the code you deployed for that point, along with its configuration and secrets.
  3. The code runs in the sandboxed runtime version you selected.
  4. Auth0 uses the result to continue, modify, or stop the transaction.
Because the runtime is managed by Auth0, you don’t provision or patch servers. In exchange, you’re responsible for keeping your code compatible with a supported runtime version as older versions reach the end of their lifecycle.

Runtimes

Auth0 supports multiple Node.js long-term support (LTS) runtimes at the same time, so you can move to a newer runtime at your own pace instead of all at once. To see the available runtimes and their dates, read Runtimes. To check which npm modules you can require on each runtime, read npm Modules.

Extensibility types

Auth0 offers several ways to run custom logic. Actions are the primary way to extend Auth0.
Depending on the entity type, the runtime is set at the tenant level or the entity level. To learn more, read Configure the Runtime.