diff --git a/app/components/Header/AuthModal.client.vue b/app/components/Header/AuthModal.client.vue index 437282b19..c77088de1 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, + }) + } +})