Dynamically disable signup

I have a situation where I want to disable signups when the user enters my app from certain pages. As far as I can tell, disable signup works at the application level. Is there away to bypass that setting in my code so that it’s disabled when authenticating from one page, but enabled on others?

I would be open to making a separate Auth0 application, but not sure how I can swap connections based on what page the user is on. This also feels kind of messy.

Any ideas?

Hi @mmaccou,

You can make two Auth0 applications, and use the pre-user-registration trigger to check for the client_id of the application who initiated the sign up and then deny user creation for whichever application you want.

If you have any other question feel free to reach out.

Have a good one,
Vlad

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.