Move auth config and build admin menus

Extract NextAuth configuration into a shared library, load admin sidebar items from role permissions, and update related RBAC types and UI.
This commit is contained in:
Ichsan Kurniawan
2026-11-06 18:25:54 +07:00
parent b149903b2e
commit 7f8e6637e4
38 changed files with 406 additions and 239 deletions
+1 -1
View File
@@ -1,10 +1,10 @@
import { type Metadata } from 'next';
import { Suspense, lazy } from 'react';
import { getServerSession } from 'next-auth';
import { authOptions } from '@/pages/api/auth/[...nextauth]';
import { type ResponseData } from '@/types/types';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import LazyLoading from '@/components/loader/LazyLoading';
import { authOptions } from '@/lib/auth';
const ComponentPage = lazy(() => import('./component'));