api.transaction.setMetadata
to set the key/value pair in order to store transaction metadata.
Use the post-login Event object event.transaction.metadata
to access stored key/value pair in the same Action or subsequent Actions on the post-login trigger for a single execution.
The API and Event objects accept the following parameters:
Value | Type | Description |
---|---|---|
Key | String | The key of the metadata property to be set. |
Value | String , Number , Boolean | The value of the metadata property. Set to null removes the property. |
string
, number
, and boolean
.
strings
within limits.
object
or array
, but you can serialize as strings.
hello
key with Auth0
value with the api
object setMetadata
method.
Auth0
value for hello
key in the transaction metadata with the event
object transaction.metadata
property to access the set values.
custom_tx_id
and xyz123
.
custom_tx_id
and the value as xyz123
. Then, set custom_tx_id
to abc456
to log again with the latest value for custom_tx_id
in the transaction metadata.
abc456
value for custom_tx_id
.
custom_tx_id
in the transaction metadata.
custom_tx_id
to null
and log the null
value for custom_tx_id
.
null
value for custom_tx_id
.
custom_tx_id
in the transaction metadata.
custom_tx_id
from the transaction metadata. Then it compares the custom_tx_id
value at the transaction metadata with the one passed to the external site that has been sent back in the payload of another token.
custom_tx_id
in the transaction metadata.
custom_tx_id
when continuing the Actions execution.
custom_tx_id
in the transaction metadata.
custom_tx_id
from the transaction metadata as vars
parameter. Then it compares the custom_tx_id
value at the transaction metadata with the one passed to the Form, when continuing the Actions execution.