diff --git a/apps/next-app/src/pages/auth/provider/index.tsx b/apps/next-app/src/pages/auth/provider/index.tsx index 1296443..2499489 100644 --- a/apps/next-app/src/pages/auth/provider/index.tsx +++ b/apps/next-app/src/pages/auth/provider/index.tsx @@ -10,12 +10,15 @@ const Provider = () => { useEffect(() => { const getSession = async () => { const session = await supabase.auth.getSession(); - router.replace(session ? ROUTES.DASHBOARD : ROUTES.LOGIN); + console.log('SESSION', session); + if (session) { + router.replace(ROUTES.DASHBOARD); + } }; getSession(); }, [router, supabase.auth]); - return null; + return