From 8454abea36585f048ee843b9a39ea630957e0114 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Thu, 16 Apr 2026 21:13:17 +0100 Subject: [PATCH] add interface --- app/login/page.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/login/page.tsx b/app/login/page.tsx index c517370..ce2a158 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -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("");