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.
Rules are going to run during every authentication and hooks are only going to run during their specific event, before or after registration or during a client credentials grant, depending on the type of hook you have set up.