Auth0 Home Blog Docs

How to prevent User sign-ups using passwordless using the 'Pre User Registration' hook?

signup
passwordless
hooks

#1

How to prevent User sign-ups using passwordless using the ‘Pre User Registration’ hook?
I setup a hook that calls an api endpoint I have that checks whether a user is allowed to sign up or not. Looks like its not being triggered/called for passwordless signups.


#2

Pre-User Registration hooks currently only run for Database Connections. For passwordless connections, any checks should be done in Rules. Although this will create the user in Auth0, you can respond with an Unauthorized error to prevent certain users logging in.

https://auth0.com/docs/hooks/extensibility-points/pre-user-registration


#3