and refer to it via config.extraParam.referrerId in the Universal Login Page (adding it as hidden additional field value) , or via context.request.query.auth_params_map.referrer_id in a Rule. The latter probably makes more sense.
You can then store the referrerId in the user’s metadata via a rule.
You can remove “appState” from the previous snippet
referrerId will show in rules as:
context.request.query.auth_params_map.referrer_id
@mathiasconradt please add this to the documentation because i was not able to find it and there are a lot of old stackoverflow answers, github issues, etc that are misleading.