Hi, I am currently implementing auth with auth0lock on a project. I have an action on login that is sending data to an internal tool, and the tool wants some query parameters such as: userId
, but when I pass these values as params in for auth, they are being transformed to user_id
. Is there any way to prevent this transformation?
const lock = new Auth0Lock(
clientId,
domain,
{
autoclose: true,
rememberLastLogin: true,
autoParseHash: true,
auth: {
redirect: false,
redirectUrl: `${window.location.origin}/callback`,
responseType: 'token id_token',
params: {
userId,
},
},
allowForgotPassword: true,
usernameStyle: 'email',
closable: false,
},
);
The above on login would have the following query paramter: user_id=
, instead of the passed userId
.