Allow passing of data between steps in a flow

I want to be able to pass data between flow steps
In order that my login process can be broken down into more meaningful steps and I can do multiple validation processing such as unique username, telephone, email within actionable steps if they are not unique.

I have a user signup flow that involves multiple validation steps which are sent to a custom API before finally logging in. I am using the data enhancement technique recommended by your documentation but have discovered it does not pass data between flows even though you have the set user metadata function. Whilst I understand that is async it should be possible to await the results of that in custom scenarios before proceeding as you can with node normally.

I have a full description of what I was trying to achieve including code here - Multi step not passing data correctly - Auth0 Community.

The reason for using this is that I can then use the same universal experience in one place rather than separately building it into my web/android/ios experiences.

Your documentation seems to indicate this is possible both in code with the set metadata functions, with the flows (can persist) and in the documentation but apparently it isn’t. I was able to do this within the very limited Azure B2C XML configuration.

It is always best practice to split up complicated processes so this should be easy but it has taken me a long while to arrive at the discovery I can’t!

Thank you

Hi @zebslc!

Welcome back to the Auth0 Community!

Thank you for creating the feedback card as suggested. Please make sure to upvote it so that it gets as many votes as possible and attracts as many community members as possible.

Thanks again!
Dawid

Hi everyone! :waving_hand:

Actions Transaction Metadata is now in EA. It lets you pass small key–value data between multiple post-login Actions during a single authentication transaction.

How it works: set with api.transaction.setMetadata([key], [value]), then read via event.transaction.metadata.key later in the same login flow.

NOTE: Transaction metadata is only available during the current authentication transaction and is not persisted beyond the completion of the authentication flow. This feature is only currently available on post-login Actions.

Got questions? :writing_hand: Drop them now. We’ll answer on Aug 27, 9–11 AM PT (18:00–20:00 CEST). :backhand_index_pointing_right: August 27 Auth0 Community Ask Me Anything: Actions

Thanks!
Dawid