-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for Twitter and Google login on Android #121
Conversation
According to the OAuth spec, the scopes have to be in a space separated string. Fixing this resolves failing Google login.
The underlying ScribeJava library already does the parsing of the OAuth tokens, so just use that instead of relying on JSON parsing (especially when the response is not JSON!). Also add the access token secret in the response since it's needed for Twitter.
Scopes should be space separated, not comma
Any chance of this getting merged ? Android twitter auth basically doesn't work without this from what I can see. |
👍 this should be merged! |
@gvillenave would you mind fixing the conflicts? I hope this will be merged after the conflicts solved. |
Done! |
This definitely should be merged. Although, line 410: |
This also fixes crashing on logging in with GitHub. +1 for merging! |
The only issue I see with this is that the location of the
whereas on android, you have to use:
The API should be the same across these platforms. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 410 of OAuthManagerModule needs to be changed to
String oauthTokenSecret = (String) accessToken.getParameter("token_secret");
It is working for me on Android after that one change.
Nice catch @SailingSteve |
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. |
This should also be deleted And also this |
TODO: create fork from react-native-oauth with fixes - fullstackreact/react-native-oauth#121 - fullstackreact/react-native-oauth#157 - fullstackreact/react-native-oauth#158 - fullstackreact/react-native-oauth#208 ^
No description provided.