react-native-oauth
react-native-oauth copied to clipboard
I'm experiencing a weird issue on iOS 10.2.1 using Google auth
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.
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.
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 ?
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?
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
})
}
})
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?