How to take specific action when authorization is denied in a Pre User Registration Auth0 custom Action

Hi @stephenrs,

Welcome to the Auth0 Community!

Yes, this happens because the api.access.deny() method stops the sign up process immediately and prevents any further actions from being executed. (Reference: Actions Triggers: pre-user-registration - API Object)

It’s also important to note that a pre-user registration action will not allow you to redirect users to external pages. Only a post-login action can redirect users.

If you need to redirect your users based on certain conditions after they sign up, you should use a post-login action instead.

You can find out the reason a user has been denied access by checking your logs.

Let me know if you have any questions.

Thanks,
Rueben