feat: Complete Fiscal Clone deployment package
- SEC filings extraction (10-K, 10-Q, 8-K) - Portfolio analytics with real-time prices - Watchlist management - NextAuth.js authentication - OpenClaw AI integration - PostgreSQL database with auto P&L calculations - Elysia.js backend (Bun runtime) - Next.js 14 frontend (TailwindCSS + Recharts) - Production-ready Docker configurations
This commit is contained in:
12
frontend/lib/auth.ts
Normal file
12
frontend/lib/auth.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { getServerSession } from 'next-auth'
|
||||
import { redirect } from 'next/navigation'
|
||||
|
||||
export async function requireAuth() {
|
||||
const session = await getServerSession()
|
||||
|
||||
if (!session || !session.user) {
|
||||
redirect('/auth/signin')
|
||||
}
|
||||
|
||||
return session
|
||||
}
|
||||
6
frontend/lib/utils.ts
Normal file
6
frontend/lib/utils.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { type ClassValue, clsx } from 'clsx'
|
||||
import { twMerge } from 'tailwind-merge'
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
Reference in New Issue
Block a user