Skip to content

Commit

Permalink
fix(quickstart): redirect to login after account deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
lfleischmann committed May 30, 2023
1 parent 59ace2e commit a665fb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quickstart/public/html/secured.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ <h1>My Profile</h1>

const { hanko } = await register("{{.HankoUrl}}", { shadow: false });

hanko.onUserDeleted(() => window.location.href = "/" );

document.getElementById("logout-link")
.addEventListener("click", (event) => {
event.preventDefault();
Expand Down

0 comments on commit a665fb7

Please sign in to comment.