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

# Node 22 Extensibility Runtime

> Learn about the Node 22 extensibility runtime, the recommended runtime for Auth0 extensibility.

Node 22 is available.

Node 22 is the recommended extensibility runtime.

## Differences from earlier runtimes

* Module-level code in Actions runs once per instance of your Action and may be reused across many executions.
* The `use npm` directive isn't available.
* Filesystem write access is disabled.
* The set of modules you can require differs. Check [Can I require: Auth0 Extensibility](https://auth0-extensions.github.io/canirequire/).
* Action Modules written with APIs that are deprecated in Node.js 22 work on Node 18 but fail on Node 22.

## Use Node 22

* To create a new Action on Node 22, or upgrade an existing one, and to change the tenant-wide runtime, read [Configure the Runtime](https://auth0.com/docs/customize/extensibility-runtime/configure-runtime.md).
* To plan an upgrade from Node 18, read [Migrate from Node 18 to Node 22](https://auth0.com/docs/customize/extensibility-runtime/migrate/from-node-18-to-node-22.md).

## Supported features

| Capability | Support |
| - | - |
| ECMAScript | ES2024 and earlier |
| Module system | CommonJS (`require`) |
| [npm modules](https://auth0.com/docs/customize/extensibility-runtime/npm-modules/overview) | Available |
| `use npm` directive | Not available |
| Global `fetch` | Available |
| `AbortController` | Available |
| `structuredClone` | Available |
| Global `crypto` (Web Crypto) | Available |
| [Magic globals](https://auth0.com/docs/customize/extensibility-runtime/npm-modules/magic-globals.md) | Not available. Explicitly `require` them |
| TLS | Secure renegotiation (RFC 5746) is required by default |

## Node.js resources

* [Node.js 22 API documentation](https://nodejs.org/docs/latest-v22.x/api/)
* [Node.js 22 release announcement](https://nodejs.org/en/blog/release/v22.0.0)
* [Node.js 22 changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md)
* [Node.js release schedule](https://nodejs.org/en/about/previous-releases)
