diff --git a/quickstart/public/html/secured.html b/quickstart/public/html/secured.html index dd0c7cffc..3545c2023 100644 --- a/quickstart/public/html/secured.html +++ b/quickstart/public/html/secured.html @@ -42,6 +42,8 @@

My Profile

const { hanko } = await register("{{.HankoUrl}}", { shadow: false }); + hanko.onUserDeleted(() => window.location.href = "/" ); + document.getElementById("logout-link") .addEventListener("click", (event) => { event.preventDefault();