Multiple Node 18 Runtime Values for Actions-Based Extensibility
Historical content covering the programmatic creation or updating of Auth0 actions targeting the Node 18 runtime may indicate that the value to use for the runtime field is node18.
// targets Node 18 (beta)
// do not use - for historical reference only
{
"name": "sample-action",
"supported_triggers": [{ "id": "post-login", "version": "v3" }],
"code": "module.exports = () => {}",
"runtime": "node18"
}
However, the runtime value node18 is associated with a beta version of an actions runtime that did not progress beyond the beta release stage. The Dashboard will display the following notice specific to this situation for actions created targeting the beta version of Node 18.
Upgrade this action from the Node 18 Beta to the latest GA runtime.
- Actions
- Extensibility Runtimes
The runtime value to use for programmatic creation / update of Node 18 actions is node18-actions; do not use the value node18 if the intent is to target the Node 18 runtime.
// targets Node 18 (non-beta)
{
"name": "sample-action",
"supported_triggers": [{ "id": "post-login", "version": "v3" }],
"code": "module.exports = () => {}",
"runtime": "node18-actions"
}
It is worth noting that using Node 18 is no longer recommended, including the non-beta version. When creating new action-based extensibility, use the most recent available Node version. At the time of writing, Node 22, with runtime value node22, is the latest version of Node extensibility runtime available.