react-native-oauth icon indicating copy to clipboard operation
react-native-oauth copied to clipboard

Auth doesn't work(can't figure out why)

Open nkalichynskyi opened this issue 7 years ago • 5 comments

At some point in time auth just stopped workin on android devices(works in simulator). I have google and amazon auth, both behave in similar manner. For google, when I enter email it takes me to page to enter password, but after entering password(definitely correct) it just reloads enter password page and that's all, it doesn't redirect to the app. For amazon sign in page same behaviour as for google "enter password" page. No helpful logs in android studio. Weird thing that that everything works fine on simulator, but on real devices even old builds that where definitely working it doesn't work anymore. Any suggestions?

nkalichynskyi avatar Oct 25 '17 13:10 nkalichynskyi

Having the exact problem on my Galaxy S6 but with Slack's auth. It seems to just refresh the initial sign-in url no matter what I press. Haven't figured it out yet but if you find a solution will you comment it?

adam-o-neill avatar Oct 26 '17 14:10 adam-o-neill

I encountered the same problem on Galaxy Tab. Is there something wrong with webview??

arelaxend avatar Nov 05 '17 19:11 arelaxend

If you close the webview, and reopens it after you've successfully logon (but nothing happened), then the webview will open directly to the page where you have to allow permissions (on Google oauth). Then, it will work. But I agree, there is a bug and I don't know how to fix it!!

arelaxend avatar Nov 05 '17 19:11 arelaxend

Same issue here, can anyone share their manager if they got it working ???

francois-pasquier avatar Nov 08 '17 15:11 francois-pasquier

      if (loadUrl) {
        view.loadUrl(url);
        return true;
      }

Just add "return true;".

arelaxend avatar Nov 12 '17 20:11 arelaxend