diff --git a/app/components/Header/AuthModal.client.vue b/app/components/Header/AuthModal.client.vue index baccae92d..f30e1df14 100644 --- a/app/components/Header/AuthModal.client.vue +++ b/app/components/Header/AuthModal.client.vue @@ -50,6 +50,14 @@ watch(handleInput, newHandleInput => { handleInput.value = normalized } }) + +watch(user, async newUser => { + if (newUser?.relogin) { + await authRedirect(newUser.did, { + redirectTo: route.fullPath, + }) + } +})