Authentication?
Voor een gegeven definitie van...
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user