proxy-go/web/app/login/page.tsx
wood chen a4437b9a39 feat(auth): Implement OAuth-based authentication with Q58 platform
- Replace password-based login with OAuth authentication
- Add OAuth login and callback handlers
- Support user whitelist via environment variables
- Update login page to use OAuth flow
- Remove legacy metrics-related authentication configuration
- Enhance token management with username tracking
2025-02-17 05:43:23 +08:00

27 lines
765 B
TypeScript

"use client"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
export default function LoginPage() {
const handleLogin = () => {
window.location.href = "/admin/api/auth"
}
return (
<div className="min-h-screen flex items-center justify-center bg-gray-100">
<Card className="w-[400px]">
<CardHeader>
<CardTitle className="text-2xl text-center"></CardTitle>
</CardHeader>
<CardContent>
<div className="space-y-4">
<Button onClick={handleLogin} className="w-full">
使 Q58
</Button>
</div>
</CardContent>
</Card>
</div>
)
}