summaryrefslogtreecommitdiff
path: root/src/containers/auth/Login.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-05-12 09:05:16 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-05-12 09:05:16 +0200
commitebe34d0d2cf5f1967e067bf0e43505dd46025c57 (patch)
tree87fe7083b2162e6a151094815c60f69c5e339ec2 /src/containers/auth/Login.js
parente65b805e94052d993f7ef486226cae0ebf9965b5 (diff)
Print Google auth failures
Diffstat (limited to 'src/containers/auth/Login.js')
-rw-r--r--src/containers/auth/Login.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/containers/auth/Login.js b/src/containers/auth/Login.js
index 4afb393c..3f2039a3 100644
--- a/src/containers/auth/Login.js
+++ b/src/containers/auth/Login.js
@@ -21,6 +21,10 @@ class LoginContainer extends React.Component {
});
}
+ onAuthFailure(error) {
+ console.error(error);
+ }
+
render() {
if (!this.props.visible) {
return <span />;
@@ -30,7 +34,7 @@ class LoginContainer extends React.Component {
<GoogleLogin
clientId={process.env.REACT_APP_OAUTH_CLIENT_ID}
onSuccess={this.onAuthResponse.bind(this)}
- onFailure={this.onAuthResponse.bind(this)}
+ onFailure={this.onAuthFailure.bind(this)}
render={renderProps => (
<span onClick={renderProps.onClick} className="login btn btn-primary">
<span className="fa fa-google" /> Login with Google