Skip to content

Commit c494d4a

Browse files
committed
If user is authenticated return the whole response
1 parent 4e01360 commit c494d4a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ class TwitterLogin extends Component {
8383
'Content-Type': 'application/json'
8484
}
8585
}).then(response => {
86-
return response.json();
87-
}).then(data => {
88-
this.props.onSuccess(data);
86+
this.props.onSuccess(response);
8987
}).catch(error => {
9088
return this.props.onFailure(error);
9189
});

0 commit comments

Comments
 (0)