Actions overtaking rules and hooks


In the past, Rules and Hooks were commonly used in Auth0 for implementing custom logic and integrating with external systems during the authentication and authorization process. Here’s a brief overview of each:

but now actions are dominating these two(rules and hooks)

Use-case: we can set usersmetadata by adding flows in actions it also provide builtin flows and also offer custom flow here i give example of custom flow.
we add favrouite color to the metadata of user as setting flow as :

exports.onExecutePostLogin = async (event, api) => {
  api.user.setUserMetadata("favorite_color", "blue");

by placing this logic to custom flow when the user login the color is set to user_metadata.


Thanks for the feature request! Don’t forget to vote for it!

1 Like