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

Handle OAuth responses as querystring as well as JSON on Android

Open stuartlangridge opened this issue 8 years ago • 0 comments

Twitter, for example, returns OAuth token data as a querystring (x-www-form-urlencoded), not as JSON, so signing in breaks as per https://github.com/fullstackreact/react-native-oauth/issues/165. Correct this by catching the JSON parse error and falling back to extracting the parameters we need from the token instead.

stuartlangridge avatar Oct 16 '17 15:10 stuartlangridge