We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e01360 commit c494d4aCopy full SHA for c494d4a
1 file changed
src/index.js
@@ -83,9 +83,7 @@ class TwitterLogin extends Component {
83
'Content-Type': 'application/json'
84
}
85
}).then(response => {
86
- return response.json();
87
- }).then(data => {
88
- this.props.onSuccess(data);
+ this.props.onSuccess(response);
89
}).catch(error => {
90
return this.props.onFailure(error);
91
});
0 commit comments