refactor(auth): replace JWT/password-lock with token guards
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import "./globals.css";
|
||||
import { AuthProvider } from "@/lib/auth-context";
|
||||
import { db, settings } from "@/lib/db";
|
||||
import { eq } from "drizzle-orm";
|
||||
|
||||
async function getSettings() {
|
||||
try {
|
||||
@@ -51,9 +49,7 @@ export default function RootLayout({
|
||||
/>
|
||||
</head>
|
||||
<body className="font-sans antialiased bg-cosmic">
|
||||
<AuthProvider>
|
||||
{children}
|
||||
</AuthProvider>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user