This commit is contained in:
parent
fb4d2629e7
commit
6bbf298c32
2 changed files with 3 additions and 3 deletions
|
|
@ -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 (
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue