GoldenOwlAsia / react-native-twitter-signin

MIT License
167 stars 303 forks source link

why i am getting the user data in error object #185

Open vikasatappinlay opened 2 years ago

vikasatappinlay commented 2 years ago

... [Error: { NativeMap: {"userID":"3322334528","name":"shah_vikas2444","userName":"shah_vikas2444","authTokenSecret":"zyN116ITXfc1BWwPnEj9LIA9hdNerSX4USIPaqKcFvOav","email":"COULD_NOT_FETCH","authToken":"3322334528-aVe906SFo3rYEY0QoD5lfwbsqRKRiL0Z24seCu0"} }]

connercharles commented 2 years ago

Same ^ can't find anything about this error anywhere else.

androidreactdev commented 2 years ago

@Vikasatneaxus I have faced same issue . you need to mention privacy policy and terms url in app settings now i am able to receive data in "then" but getting email null

connercharles commented 2 years ago

@androidreactdev I tried that and I still got that error message with all the user data as shown above. Are those tokens usable even though they are in an error message? Are we just supposed to ignore this error and act as though it responded correctly since we received this data?

richardkuiper commented 2 years ago

I am having a similar issue. on iOS it is returning the email and the twitter credential that is created works fine with Firebase. On Android I am receiving a null email address and the twitter credential that is created does not work with Firebase. Keeps saying the credential is expired or malformed. But I believe it is failing because it is calling https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true ,but we are using a null email. So everything falls apart.

Any help on this would be greatly appreciated.

osama-ameer commented 2 years ago

Same issue. 😢 can't find anythig