diff --git a/src/pages/login.tsx b/src/pages/login.tsx index 8cc49f98..4775bf5c 100644 --- a/src/pages/login.tsx +++ b/src/pages/login.tsx @@ -82,7 +82,8 @@ export default function Login({ destination = "/" }: { destination?: string }) { toast.success("You have been logged in!", { toastId: "login-successful", }); - mutateUser(response.data); + mutateUser(response.data, { revalidate: false }); + router.push(destination); }) .catch((e) => { if (e.response.status === 401) {