mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-18 15:27:52 +00:00
add interface
This commit is contained in:
@@ -5,6 +5,27 @@ import { useGoogleLogin } from "@react-oauth/google";
|
|||||||
import { useTheme } from 'next-themes';
|
import { useTheme } from 'next-themes';
|
||||||
import { Sun, Moon } from 'lucide-react'; // Optional: install lucide-react for clean icons
|
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() {
|
export default function AppleStyleAuth() {
|
||||||
const [email, setEmail] = useState("");
|
const [email, setEmail] = useState("");
|
||||||
const [password, setPassword] = useState("");
|
const [password, setPassword] = useState("");
|
||||||
|
|||||||
Reference in New Issue
Block a user