Auth0 Home Blog Docs

Rules and Hooks. Which gets precedence?


#1

I am trying to clear up a little confusion I have regarding rules and hooks. For instance, if I have a rule configured to run on account creation, but I also have a pre and post user registration hook defined will the hook take precedence over the rule?

If the rule runs every time then it would makes sense to just use the rule. I was trying to leverage hooks at first, but they don’t work with social logins which caused me to incorrectly assume that hooks worked with database logins and rules worked with social logins.

I tried a google search, but I couldn’t find anything authoritative.