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

I'm experiencing a weird issue on iOS 10.2.1 using Google auth

Open alextkd opened this issue 7 years ago • 5 comments

If i login then logout a few times on iOS google auth does not work anymore. I get "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" upon the request. This only happens on device and never on the simulator. And no matter what i do after (removing/reinstalling the app), it will not work again. Somehow some config gets stuck in the webView. I'm wondering if anyone has experienced this. One thing i noticed is on makeRequest exported method the DCTAuthAccount *existingAccount = [manager accountForProvider:providerName]; existingAccount private prop clientID on simulator has value and on device is null. I checked where the config is set and everything seems to be fine. If you guys have experienced this already and fixed it or if i'm missing something let me know, if not i will try to come up with a fix.

alextkd avatar Mar 19 '17 21:03 alextkd

Hm... I haven't experienced this myself, but it's a good one to fix, if you've encountered it.

One thing I would really like to put on the TODO is make auth stateless. Not sure exactly how to do that quite yet.

auser avatar Mar 19 '17 21:03 auser

I also started getting this error all of a sudden. It was working fine before but when i deleted the app from the facebook settings, uninstall the app from simulator and re-install the app, I am getting this error. any workarounds ?

roshangm1 avatar Apr 06 '17 08:04 roshangm1

Getting same error on IOS Simulator while trying to sign in via Google. Object { "msg": "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)", "status": "error", } Any solution for this?

krunalp1993 avatar Jun 23 '17 06:06 krunalp1993

Hi All I got same error and resolved with facebook oauth. deauthorize() would be solution for this problem.

manager.deauthorize('facebook').then(_ => {
  manager.authorize('facebook').then(_ => {
    manager.makeRequest('facebook', '/me').then(resp => {
      // code
    })
  }
})

dotneet avatar Jul 04 '17 08:07 dotneet

I'm having a problem please, can someone help me, whenever I log into my social media account, for some unknown reason, I can't login with a different account, every time i click on authorise, skips the consent screen and just logs the person in, is there a way to make such that the user can actually choose to login with a different social media or google account?

thecodecafe avatar Jun 24 '18 20:06 thecodecafe