Using the auth0Lock, is it possible to dynamically change the allowedConnections depending on user input? I’ve tried using lock.update on ‘signin submit’ but have yet to be successful. Is there something I’m overlooking?
lock.on('signin submit', ( ) => {
lock.update((currentLock) => {
if(currentLock.getIn('field', 'email', 'value']) === 'desired value') {
return currentLock.updateIn( 'core', 'allowedConnections'], value => [alternativeDbConnection]);
}
return currentLock;
}
})