From 967b0cda79142f24a7fcef9685ca153a70f6b122 Mon Sep 17 00:00:00 2001 From: Perry Date: Sat, 3 Nov 2018 18:21:57 -0700 Subject: [PATCH] Get rid of login dialog after user has been authenticated --- src/Login.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Login.js b/src/Login.js index fb579e4..34a38b6 100644 --- a/src/Login.js +++ b/src/Login.js @@ -53,6 +53,8 @@ class Login extends Component { console.error("Expected user to have a faunadb_token, check logs for the identity-signup.js function.") console.log(this.state.user) } + // Close the modal, get rid of the dialog automatically after log-in accepted + netlifyIdentity.close(); } didLogout() {