"use client"
import { useState } from "react"
import Link from "next/link"
import { createAuthClient } from "better-auth/client";
const authClient = createAuthClient();
export default function LoginPage() {
const [isLoading, setIsLoading] = useState(false)
const handleGoogleSignIn = async () => {
setIsLoading(true)
try {
await authClient.signIn.social({
provider: "google",
});
console.log("Google sign-in clicked")
} catch (error) {
console.error("Sign-in error:", error)
} finally {
setIsLoading(false)
}
}
return (
tunnl.live
Sign in to manage your tunnels
Welcome Back
Sign in to access your tunnel dashboard
Continue as Guest
Benefits of signing in:
-
Save and manage your tunnel configurations
-
View tunnel usage statistics and history
-
Access to premium features and priority support
-
Sync settings across multiple devices
By signing in, you agree to our{" "}
Terms of Service
{" "}
and{" "}
Privacy Policy
Need help?{" "}
Contact Support
)
}