mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-28 06:37:57 +08:00
fix(quickstart): redirect to login after account deletion
This commit is contained in:
@ -42,6 +42,8 @@
|
||||
|
||||
const { hanko } = await register("{{.HankoUrl}}", { shadow: false });
|
||||
|
||||
hanko.onUserDeleted(() => window.location.href = "/" );
|
||||
|
||||
document.getElementById("logout-link")
|
||||
.addEventListener("click", (event) => {
|
||||
event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user