Authentication?

Voor een gegeven definitie van...
This commit is contained in:
2025-06-25 16:38:22 +02:00
parent e7ca11d1bc
commit bfa1c7879b
7 changed files with 128 additions and 20 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
"use client";
import "./style.css";
import { useState } from "react";
import { AuthProvider } from "react-oidc-context";
import { oidcConfig, userManager } from "muzak/config/auth";
export default function RootLayout({
children,
@@ -16,7 +18,7 @@ export default function RootLayout({
return (
<html lang="en">
<body className={`bg-game-show ${isAnimate ? "animate" : ""} h-screen`}>
{children}
<AuthProvider {...oidcConfig}>{children}</AuthProvider>
<button
className={`absolute top-1 left-1 ${isAnimate ? "pause" : "play"}`}
onClick={toggleAnimation}