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

Fixes for Twitter and Google login on Android

Open gvillenave opened this issue 7 years ago • 10 comments

gvillenave avatar Jun 12 '17 23:06 gvillenave

Any chance of this getting merged ? Android twitter auth basically doesn't work without this from what I can see.

kyle-ssg avatar Aug 06 '17 23:08 kyle-ssg

👍 this should be merged!

stewartlord avatar Aug 10 '17 17:08 stewartlord

@gvillenave would you mind fixing the conflicts? I hope this will be merged after the conflicts solved.

hanalaydrus avatar Aug 15 '17 06:08 hanalaydrus

Done!

gvillenave avatar Aug 28 '17 19:08 gvillenave

This definitely should be merged. Although, line 410: String oauthTokenSecret = (String) accessTokenMap.get("oauth_token_secret"); in android/src/main/java/io/fullstack/oauth/OAuthManagerModule.java should also be dealt with. It casues me a build error(error: cannot find symbol pointing to this line) in case of android release builds, rebased to package version 2.2.0. Apart from that, Twitter finally redirects me to my app. Thanks.

f4z3k4s avatar Sep 04 '17 16:09 f4z3k4s

This also fixes crashing on logging in with GitHub. +1 for merging!

desktp avatar Sep 06 '17 15:09 desktp

The only issue I see with this is that the location of the authorized key is different on iOS than android. On iOS, you have to check:

if (accessTokenData.response.authorized)

whereas on android, you have to use:

if (accessTokenData.authorized)

The API should be the same across these platforms.

joncursi avatar Oct 03 '17 14:10 joncursi

Nice catch @SailingSteve This PR should really be merged into master!

MBach avatar Nov 16 '17 08:11 MBach

Please merge this, or please maybe if you doesn't has the time to maintain this package pass it to some one how can like react-native-community or some contributor... Thanks for all the effort. I said cause I doesn't seem changes for 4 months ago.

alejandrosanabriav avatar Nov 23 '17 16:11 alejandrosanabriav

This should also be deleted

https://github.com/gvillenave/react-native-oauth/blob/4f34e87e99863ba04fe0a11646712ef2b16a28f2/android/src/main/java/io/fullstack/oauth/OAuthManagerModule.java#L410

And also this

https://github.com/gvillenave/react-native-oauth/blob/4f34e87e99863ba04fe0a11646712ef2b16a28f2/android/src/main/java/io/fullstack/oauth/OAuthManagerModule.java#L421

negebauer avatar Jul 19 '18 05:07 negebauer