Use Actions to extend Auth0:
- To learn more about Actions, read Understand How Auth0 Actions Work.
- To migrate, read Migrate from Rules to Actions.
global object. The global object survives individual execution, so you can reuse things stored there instead of creating them every time a Rule is run. However, the Rules environment can be recycled at any time so your code must always check that global contains what you expect.
This example shows how to use the global object to keep a MongoDB connection: