Multi step not passing data correctly

Hi @zebslc

Welcome to the Auth0 Community!

Thank you for posting your question. First of all, to answer your concern about metadata persisting the behaviour you observe is expected and by design.

Multiple setUserMetadata or setAppMetadata calls will be batched together into a single user profile update at the end of the trigger’s execution, even if they are made by different Actions.

  • Is there a supported way to persist data between steps in a multi-step Auth0 Action flow, given that user_metadata is not immediately available in the same login session?

The recommended way to store data between multi-step actions would be a caching mechanism. You can read about that here →

However, cache has certain limitations that you need to consider during implementation →

  • Is there a way to add hidden or read-only fields to Auth0 Action forms to carry data between steps?

Unfortunately, no, due to the Action limitation, however, I would encourage you to open a new thread in the Product Feedback category explaining your use case. If the thread becomes popular among other community members, our product team will evaluate the idea.

  • What is the recommended pattern for multi-step data collection in Auth0 Actions, given these limitations?

If that is possible, the recommended approach would be to reduce the number of actions to a single action; this way, you don’t need to worry about sharing the user information between action triggers.

Thanks
Dawid