"use client"; import Image from "next/image"; import Link from "next/link"; import { Log } from "oidc-client-ts"; import { useAuth } from "react-oidc-context"; import { Nunito } from "next/font/google"; import { use, useState } from "react"; Log.setLogger(console); const nunito = Nunito({ weight: "900", subsets: ["latin"], }); export default function Page() { const [userName, setUserName] = useState("Stroop"); const auth = useAuth(); console.log(auth); return (

LOGIN

{auth.isAuthenticated && (

Hallo je bent nu ingelogd.

)} {!auth.isAuthenticated && (

Welkom, {userName}!

)}
); }