UNPKG

codalware-auth

Version:

Complete authentication system with enterprise security, attack protection, team workspaces, waitlist, billing, UI components, 2FA, and account recovery - production-ready in 5 minutes. Enhanced CLI with verification, rollback, and App Router scaffolding.

8 lines (6 loc) 280 B
import { useSession } from '../lib/auth/providers/hooks'; export const useUserProfile = () => { const { data: session } = useSession(); // session.user should carry updated fields after any mutation (or force refresh else) return { user: session?.user || null }; };