Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
netlifyIdentity.on('login', user => {
netlifyIdentity.close();
resolve();
});
}
logIn (user) {
const netlifyIdentity = require("netlify-identity-widget");
if (!user) {
this.logOut();
} else {
this.$data.loggedIn = true
}
netlifyIdentity.close()
},
},