Problem statement
What happens if a subsequent Action in the flow sets a custom claim that has been set by a previous action?
e.g. if the first Action sets:
api.idToken.setCustomClaim("custom","Add Claim 1");
And the next Action in the flow sets:
api.idToken.setCustomClaim("custom","Add Claim 2");
Solution
A subsequent Action that runs will overwrite a claim set by a previous Action with the newly specified value.
For the example API calls above, the resultant claim in the ID token would be:
"custom": "Add Claim 2"