Skip to main content
Set a key/value pair from a Custom Token Exchange Action and read it from a Post-Login Action in the same transaction. This is useful, for example, to set a custom claim in Post-Login based on information your Custom Token Exchange Action already obtained or processed from the subject_token or actor_token. Custom Token Exchange Action Decode a claim from the subject_token and set it as transaction metadata with the api object’s setMetadata method.
Post-Login Action Read the subject_locale value set by the Custom Token Exchange Action with the event object’s transaction.metadata property, and use it to set a custom claim. The claim can be added to the access token, the ID token, or both.