Actions overtaking rules and hooks

Actions

Description:
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.

@mmdanish,

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

1 Like

Hey there!

As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!