From 6bbf298c321fe0b76f059d493624a7eaba8913a6 Mon Sep 17 00:00:00 2001 From: watson Date: Thu, 21 Aug 2025 23:20:49 +0200 Subject: [PATCH] Testing Auth --- src/header/Header.tsx | 2 +- src/main.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/header/Header.tsx b/src/header/Header.tsx index a761e5c..0606e08 100644 --- a/src/header/Header.tsx +++ b/src/header/Header.tsx @@ -4,7 +4,7 @@ import ThemeSwitch from "./themeSwitch.tsx"; import { useAuth } from 'oidc-react'; const Header = () => { - const auth = useAuth(); // ✅ use the hook at the top level + const auth = useAuth(); return (
diff --git a/src/main.tsx b/src/main.tsx index ec4b097..889ecd8 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,11 +7,11 @@ import Header from "./header/Header.tsx"; const oidcConfig = { onSignIn: () => { - // Redirect? + console.log('hi'); }, authority: 'https://auth.octubre.be', clientId: '0WU8Mb9NfKQPvB29U0di3GGXVxv5uvolvOgcJiusjSw8eb0O8ghfVcLHLAg8MkGv', - redirect_uri: 'https://octubre.be', + redirect_Uri: 'https://octubre.be', autoSignIn: false, autoSignOut: false };