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

# Magic Globals

> Learn which npm modules Node 12 exposes as globals in Rules, Custom Database scripts, and Custom Social Connection scripts, and how to replace them with explicit require calls.

Node 12 exposes the following npm modules as globals in Rules, Custom Database scripts, and Custom Social Connection scripts, so you can use them without calling `require`. Node 16 and later remove them. Before you use one of these modules, explicitly require it:

* In Rules, Custom Database scripts, and Custom Social Connection scripts, `require` a version [listed as available](https://auth0.com/docs/customize/extensibility-runtime/npm-modules/can-i-require.md) for your runtime.
* In Hooks and Actions, add the intended version as an explicit dependency first.

| Global name |
| - |
| `_` |
| `async` |
| `Auth0` |
| `azure_storage` |
| `bcrypt` |
| `couchbase` |
| `cql` |
| `crypto` |
| `ip` |
| `jwt` |
| `Knex` |
| `mongo` |
| `mysql` |
| `mysql_pool` |
| `ObjectID` |
| `pbkdf2` |
| `pg` |
| `postgres` |
| `Pubnub` |
| `q` |
| `querystring` |
| `request` |
| `sqlserver` |
| `uuid` |
| `xml2js` |
| `xmldom` |
| `xpath` |
| `xtend` |

## Replace magic globals

1. Find every use of a magic global in your Rules, Custom Database scripts, and Custom Social Connection scripts.
2. Add an explicit `require` for each one, using a version listed in Can I require for the target runtime.
3. Test in a development tenant before you change the tenant-wide runtime.

To learn more, read [npm Modules](https://auth0.com/docs/customize/extensibility-runtime/npm-modules/overview), [Can I Require](https://auth0.com/docs/customize/extensibility-runtime/npm-modules/can-i-require.md), and [Migrate from Node 12 to Node 22](https://auth0.com/docs/customize/extensibility-runtime/migrate/from-node-12-to-node-22.md).
