Skip to main content
Node 18 is deprecated and the Node.js project no longer provides security fixes for it.After the Node 18 runtime is removed from your tenant, extensibility that still targets it is forced to run on the latest available runtime.Upgrade as soon as possible to follow code security best practices.

Considerations

Differences between Node 18 and Node 22

Module-level code in your Actions is invoked once per instance of your Action and may be reused across many executions.

Migration steps

Assess resources

List the Actions, Custom Database scripts, Custom Social Connection scripts, Rules, and Hooks that run on Node 18.

Upgrade code

Address the changes in the table above.

Upgrade existing Actions

Upgrade each Action individually by creating and deploying a new version with Node 22 (Recommended) as the runtime.
You can revert to the previous version on the older runtime.

Change the tenant-wide runtime

Custom Database scripts and Custom Social Connection scripts use the tenant Extensibility runtime. Rules and Hooks use the same runtime unless you set a Legacy Extensibility override, so when no override is set, changing the Extensibility runtime changes all of them at the same time. Test in a development tenant first, then promote to production only when you see no issues.
  1. Navigate to Auth0 Dashboard > Settings > Advanced.
  2. Scroll to the Extensibility section.
  3. For Runtime, select Node 22.
  4. Under Legacy Extensibility, check Runtime. If it’s set to an older version, select Node 22 or Same as current runtime.
  5. Save your changes.

Upgrade Extensions

Extensions have their own Node.js runtime version, which is determined when you install or upgrade each one. Changing the tenant-wide runtime doesn’t change the runtime of your Extensions, so upgrade each Extension separately to run it on the latest runtime. To learn more, read Configure the Runtime, Node 22, and Best Practices.