For the life of me, I can’t get React Native to use Passwordless login. All it ever does is go to the email login. I’m using the sample app, below:
onLogin = () => {
auth0.webAuth
.authorize({
scope: 'openid profile email',
audience: 'https://' + credentials.domain + '/userinfo',
})
.then(credentials => {
Alert.alert('Success', 'AccessToken: ' + credentials.accessToken, { text: 'OK', onPress: () => console.log('OK Pressed') }], {
cancelable: false,
});
this.setState({ accessToken: credentials.accessToken });
})
.catch(error => console.log(error));
and I’ve got a NATIVE client with all connections turned off except SMS (Twilio) and I have the default Lock (Passwordless) Hosted Page setup.
Anyone know what could be wrong?
Thanks!
Edit: Got this solved by changing the hosted page to use “lock.sms”. How would I make this not use the (pretty ugly) web login page?