What options are available for managing common custom code in rules?

What options are there available for managing custom javascript code for re-use in Auth0 rules, hooks or actions?

At present, our solution runs custom rules at the start of the authentication pipeline that define custom javascript objects/functions/properties on the global object. These custom functions on the global object are then referenced in rules that run later in the authentication pipeline.

Is there a better way to manage custom code? For example, is it possible to write all of our custom code in a node module and reference that custom node module in our rules? Or is it possible to use a custom extension etc?

Thanks.

Hi @aflood

Welcome to the Auth0 Community!

Have you looked into Actions?

I’m not sure I have a clear picture of what you mean by:

Can you give an example? If you are mostly concerned with managing versioning and iterating on your rules, you can do that with Actions.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.