1d37593102
Wire the AppShell SDK for auth/identity across the CRM, gated behind isShellConfigured() so the existing mock portal + static demo user stay the fallback until the Shell BFF is configured. - providers.tsx: app-wide <AppShellProvider> (auth passed only when Supabase env set) - next.config.ts: transpilePackages + /shell -> BFF rewrite (keeps /api/geo intact) - login: password -> login(), social -> loginWithOAuth(), OAuth return -> completeOAuthLogin() - register: email/password sign-ups call register() on finish - dashboard: AuthGate bounces unauthenticated visitors; topbar shows ACE identity - docs/APPSHELL_INTEGRATION.md, .env.local.example, .npmrc for GitHub Packages
11 lines
235 B
TypeScript
11 lines
235 B
TypeScript
import { Dashboard } from "@/components/dashboard/dashboard";
|
|
import { AuthGate } from "@/components/dashboard/auth-gate";
|
|
|
|
export default function DashboardPage() {
|
|
return (
|
|
<AuthGate>
|
|
<Dashboard />
|
|
</AuthGate>
|
|
);
|
|
}
|