> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Extensibility Runtime

> Learn what the extensibility runtime is, how Auth0 uses it to securely execute your custom code, and how runtime versions apply to the different ways of extending Auth0.

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

A four-step flow. Auth0 reaches an extensibility point such as post-login. Auth0 loads the code you deployed, with its configuration and secrets. The code runs in the sandboxed runtime version you selected. Auth0 uses the result to continue, modify, or stop the transaction.

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](https://auth0.com/docs/customize/extensibility-runtime/runtimes).

To check which npm modules you can require on each runtime, read [npm Modules](https://auth0.com/docs/customize/extensibility-runtime/npm-modules/overview).

## Extensibility types

Auth0 offers several ways to run custom logic. **Actions** are the primary way to extend Auth0.

| Extensibility type | Generation | Status | Runtime selected |
| - | - | - | - |
| [Actions](https://auth0.com/docs/customize/actions/actions-overview.md) | Current | Available | Per Action version |
| [Custom Database scripts](https://auth0.com/docs/authenticate/database-connections/custom-db) | Current | Available | Tenant setting |
| [Custom Social Connection scripts](https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2.md) | Current | Available | Tenant setting |
| [Marketplace integrations](https://auth0.com/docs/customize/integrations.md) | Current | Available | Per Integration managed by Auth0 / Integration partners |
| [Extensions](https://auth0.com/docs/customize/extensions/overview.md) | Legacy | Available | Per Extension version |
| [Rules](https://auth0.com/docs/customize/rules.md) | Legacy | Deprecated | Tenant setting |
| [Hooks](https://auth0.com/docs/customize/hooks.md) | Legacy | Deprecated | Tenant setting |

Depending on the entity type, the runtime is set at the tenant level or the entity level. To learn more, read [Configure the Runtime](https://auth0.com/docs/customize/extensibility-runtime/configure-runtime.md).
