How should development teams use auth0 in local development with custom actions flows that should call local api

Hi @11TStudio,

Thank you for your response and patience.

After my investigation, I found that your Post Login Action script is setting the custom claims to the tokens correctly.

Because of that, there does not seem to be a specific error in your script.

Moreover, I would like to clarify that you cannot call localhost from within the Action scripts. Your local machine and the Auth0 authorization servers do not share the same instance, hence unable to communicate with localhost. In this case, you must deploy your API to the cloud to be obtainable through your Axios requests.

Hoped this helps!

Please let me know if you have any questions.

Thank you.

1 Like