Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(({ user }) => {
this.store.set("$root.user", {
email: user.email,
id: user.uid,
displayName: user.displayName,
photoURL: user.photoURL
});
History.replaceState({}, null, "~/");
})
.catch(error => {
.then(() => {
History.replaceState({}, null, `~/${id}`);
});
}