"use client"; import React from "react"; import { IconBrandGoogleFilled } from "@tabler/icons-react"; import { motion } from "framer-motion"; import { Logo } from "@/components/Logo"; import { AmbientBackground } from "./AmbientBackground"; export function GoogleLoginButton() { const handleGoogleLogin = () => { // Redirect to Google OAuth authorization URL fetch(`${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL}/auth/google/authorize`) .then((response) => { if (!response.ok) { throw new Error('Failed to get authorization URL'); } return response.json(); }) .then((data) => { if (data.authorization_url) { window.location.href = data.authorization_url; } else { console.error('No authorization URL received'); } }) .catch((error) => { console.error('Error during Google login:', error); }); } return (

Welcome Back

SurfSense Cloud is currently in development. Check Docs for more information on Self-Hosted version.

Continue with Google
); }