Revert "feat: added posthog"

This reverts commit c96be7d9e1.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-12-25 13:37:35 -08:00
parent c96be7d9e1
commit d9e6947fbd
18 changed files with 19 additions and 506 deletions

View file

@ -2,7 +2,6 @@
import { useRouter, useSearchParams } from "next/navigation";
import { useEffect } from "react";
import { trackUserLoggedIn } from "@/lib/analytics";
import { getAndClearRedirectPath, setBearerToken } from "@/lib/auth-utils";
interface TokenHandlerProps {
@ -41,10 +40,6 @@ const TokenHandler = ({
localStorage.setItem(storageKey, token);
setBearerToken(token);
// Track successful login (works for both email and Google OAuth)
const authType = process.env.NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE || "GOOGLE";
trackUserLoggedIn({ method: authType === "GOOGLE" ? "google" : "email" });
// Check if there's a saved redirect path from before the auth flow
const savedRedirectPath = getAndClearRedirectPath();