octubre/src/main.tsx
watson 02626fc835
All checks were successful
Deploy to production / Build (push) Successful in 2m25s
Testing Auth
2025-08-21 23:27:00 +02:00

26 lines
655 B
TypeScript

import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './app.tsx'
import './main.css'
import {AuthProvider} from 'oidc-react';
import Header from "./header/Header.tsx";
const oidcConfig = {
onSignIn: () => {
console.log('hi');
},
authority: 'https://auth.octubre.be',
clientId: '0WU8Mb9NfKQPvB29U0di3GGXVxv5uvolvOgcJiusjSw8eb0O8ghfVcLHLAg8MkGv',
redirectUri: 'https://octubre.be',
autoSignIn: false,
autoSignOut: false
};
createRoot(document.getElementById('root')!).render(
<StrictMode>
<AuthProvider {...oidcConfig}>
<Header/>
<App/>
</AuthProvider>
</StrictMode>
)