add interface

This commit is contained in:
2026-04-16 21:13:17 +01:00
parent 73e0834d18
commit 8454abea36
+21
View File
@@ -5,6 +5,27 @@ import { useGoogleLogin } from "@react-oauth/google";
import { useTheme } from 'next-themes';
import { Sun, Moon } from 'lucide-react'; // Optional: install lucide-react for clean icons
interface GoogleAuthResponse {
access_token: string;
token_type: string;
expires_in: number;
scope: string;
authuser?: string;
prompt?: string;
}
interface KeycloakTokenResponse {
access_token: string;
expires_in: number;
refresh_expires_in: number;
refresh_token: string;
token_type: string;
id_token?: string;
"not-before-policy": number;
session_state: string;
scope: string;
}
export default function AppleStyleAuth() {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");