I am using Auth0 Lock (SMS Passwordless login) within a React app. I have a button that prompts the user to login, which displays the Lock widget. When I first load the page and click to login, the Lock dialog pops up with the correct default fields: a dropdown select field for country code and a field for phone number. I am able to login without issue.
However, if I close the Lock dialog without logging in, and click the button again to login, the country code field displays ‘undefined undefined’ – and if I attempt to click the dropdown, the console shows an error: Cannot read property ‘map’ of undefined (list.js:203).
If I refresh the page, the dialog works properly again.
I checked the logs and see the following:
Failed silent auth
"error": {
"message": "Login required",
"oauthError": "login_required",
"type": "oauth-authorization"
}
Not sure what is happening here. Any thoughts? Happy to provide additional information / code as applicable.