You can use authParamsMap
like this:
webAuth.authorize({
authParamsMap: {'referrerId': 'abc123'}
});
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.