Custom Database Login Script and PreRegistration Action

Hi!

  1. I have a customer db script which basically makes a REST pseudo-login call to our API. We are doing lazy User import so this works fine. The Login call goes to Auth0->fails since the user does not exist->POSTS a pseudo-login to our API->and then the user’s creds get stored in Auth0.

  2. For Registration, I have a PreRegistration hook that basically makes a POST call to our API to create the user in our application. Ostensibly the flow is then supposed to create the User in Auth0.

HOWEVER - it looks like Auth0 is invoking the Login script in #1 - which always fails since our application will not store passwords for new users (the passwords should only exist in Auth0.

Has anyone run into this before? I can’t find any documentation anywhere describing this flow. Nowhere does it say the Custom Login script is invoked during User creation.

Any pointers would be appreicated.

Thanks!

Hey team! :waving_hand:

Since this topic touches Auth0 Actions, quick heads-up that we’re hosting an Ask Me Anything dedicated to Actions with Gaston Danilo Asis Sanchez, Senior Technical Product Manager. We’ll cover practical usage, new capabilities like Transaction Metadata and Actions Types, plus a peek at what’s next. :sparkles:

  • Submit questions now through Aug 26 :writing_hand:
  • Get detailed written answers live on Aug 27, 9–11 AM PT :speech_balloon:

Earn community points + a badge :trophy:. If you’re exploring how Actions can streamline your auth flows, this is a great time to get direct guidance from the team.
Join the AMA & drop your questions here: August 27 Auth0 Community Ask Me Anything: Actions

Dawid