React-native-auth0: Android "User Cancelled Auth" Error

Created on 11 Jul 2017  路  2Comments  路  Source: auth0/react-native-auth0

screen shot 2017-07-11 at 12 02 19 pm

This is my onLogin command and what it does is it calls checkLogin which simply checks credentials and then navigates to new page if successful. This piece of code works perfectly on IOS and it navigates to the new page upon verifying the accessToken after pressing login and entering correct login info.

However, on Android the same code catches an error at line 54 after pressing login and entering correct login info.

screen shot 2017-07-11 at 12 03 17 pm

My callbacks are configured correctly and all.

Most helpful comment

Oh man, silly mistake on my behalf. I had forgotten to include the line "android:launchMode="singleTask" in my manifest. Thanks for the super quick reply!

All 2 comments

That error raises when you ask for authentication and you don't get it back, probably because the user "closed" the authentication screen. Please check that you've followed the configuration steps described in the readme.

Oh man, silly mistake on my behalf. I had forgotten to include the line "android:launchMode="singleTask" in my manifest. Thanks for the super quick reply!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dronsfield picture dronsfield  路  7Comments

pcurc picture pcurc  路  7Comments

ricbermo picture ricbermo  路  10Comments

datvtwkm picture datvtwkm  路  3Comments

reinvanimschoot picture reinvanimschoot  路  3Comments