diff --git a/frontend/app/auth/google/page.tsx b/frontend/app/auth/google/page.tsx index 3c249f9a..67eeef26 100644 --- a/frontend/app/auth/google/page.tsx +++ b/frontend/app/auth/google/page.tsx @@ -5,6 +5,7 @@ import { useRouter, useSearchParams } from "next/navigation"; import { CheckCircleIcon } from "lucide-react"; import { authGoogleAuthGoogleGet } from "@/client"; +import Link from "@/components/navigation/link"; import { Box } from "@/components/ui/box"; import { Card, @@ -32,6 +33,7 @@ export default function GoogleOAuth() { } await authGoogleAuthGoogleGet({ query: { code } }); setIsLoading(false); + router.push("/"); })(); } }, [code, router]); @@ -57,6 +59,11 @@ export default function GoogleOAuth() { ? "Hang tight! We're logging you in. This shouldn't take too long." : "All done! You should be redirected soon."} + {!isLoading && ( + + Redirect now + + )}