import { useState, useCallback } from 'react' import { fetchAuthConfig, initiateLogin } from '../hooks/useAuth' function Logo({ size }: { size: number }) { return (
F
) } export default function Login() { const [loading, setLoading] = useState(false) const [error, setError] = useState('') const handleSignIn = useCallback(async () => { setLoading(true) setError('') try { const config = await fetchAuthConfig() await initiateLogin(config) // page will redirect — no further state updates needed } catch (err) { setError(err instanceof Error ? err.message : 'Could not reach auth server') setLoading(false) } }, []) return (
{/* Arabic */}
بِسْمِ اللَّهِ

Falah OS

Sovereign Digital Economy

{/* UmmahID sign-in block */}
🪪
UmmahID
Zero-knowledge identity · auth.falahos.my
{error && (
{error}
)}

Falah OS CE v1.3 · Community Edition

) }