refactor(auth): replace JWT/password-lock with token guards

This commit is contained in:
belisards
2026-05-03 16:31:00 -03:00
parent 7b29e39e9f
commit 4f3017a02d
15 changed files with 337 additions and 1146 deletions

View File

@@ -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>
);