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

iOS google oauth issue "The operation couldn’t be completed. (DCTAuth error 0.)"

Open jimji1005 opened this issue 7 years ago • 3 comments

Hi all

Running RN 47.2 with iOS 9. Followed the readme and compile all works fine except authorize. Getting some kind of weird error after successful login and callback. Not sure why there would be this error here. Did anyone encounter this or resolved it?

(file was linked via cocoapod)

wx20170830-215750 2x

jimji1005 avatar Aug 31 '17 04:08 jimji1005

Are you by any chance including a client_secret in your Google config? I had mine set up like this:

google: {
    callback_url: `[IOS SCHEME]:/google`,
    client_id: 'YOUR_CLIENT_ID',
    client_secret: 'YOUR_SECRET'
  }

and I was getting that same error. When I removed the client_secret it worked.

I set it up like this so I could use the config for Android too, but that appears the break iOS. The docs could be a little clearer about using an Android-specific configuration.

mikelaunchpeer avatar Oct 02 '17 21:10 mikelaunchpeer

i am getting this problem with twitter oauth after getting error app is crashed. any one who have solution for this

Dhaval240420 avatar Nov 21 '18 12:11 Dhaval240420

^ was this ever resolved?

raymondjacobson avatar Jan 14 '20 00:01 raymondjacobson