Another way is to use additional params in the authParamsMap
like this:
webAuth.authorize({
authParamsMap: {'myAdditionalParam': 'something'}
});
which would then be available under config.extraParams.myAdditionalParam
in the hosted login page. Though originally meant to be used to pass a non-standard parameter to an upstream IdP, it would also work for this use case.
Related: