How to pass custom param to rules from Auth0 lock in case of enterprise connection?

I am trying to pass custom param to rules from Auth0 lock using the below code:

params: Object.assign(config.internalOptions, {
language: window.navigator.userLanguage || window.navigator.language
})

and in rules I am trying to fetch it like context.request.query.language
Now the issue is, if a user logged in from Auth0 database then I can find language param in rule but if a user logged in using enterprise connection e.g “ADFS” then I can’t find language param in rules. So is there any way to pass custom param to rules in case of enterprise connections?

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?