- Wire up real user data to sidebar, header, and account modal - Add functional profile editing (first name, last name) via WorkOS API - Add password change functionality via WorkOS API - Add logout functionality to sidebar and header dropdowns - Migrate from manual WorkOS SDK to @workos-inc/authkit-nextjs - Add server-side input validation with Zod schemas for all auth routes - Add shared validation schemas for auth, users, teams, schedule, financial - Fix 30-second auto-logout by properly handling refresh tokens - Add SidebarUser type and toSidebarUser helper for UI components - Add getInitials utility for avatar fallbacks - Document rate limiting configuration for Cloudflare WAF - Fix login page Suspense boundary for Next.js 15 compatibility - Remove obsolete workos-client.ts in favor of authkit helpers Co-authored-by: Nicholai <nicholaivogelfilms@gmail.com>
30 lines
1.1 KiB
Plaintext
Executable File
30 lines
1.1 KiB
Plaintext
Executable File
# WorkOS Authentication (AuthKit)
|
|
# Get these from your WorkOS dashboard: https://dashboard.workos.com
|
|
WORKOS_API_KEY=your_workos_api_key_here
|
|
WORKOS_CLIENT_ID=your_workos_client_id_here
|
|
|
|
# Cookie encryption password - must be at least 32 characters
|
|
# Generate with: openssl rand -base64 24
|
|
WORKOS_COOKIE_PASSWORD=your_random_32_character_string_here
|
|
|
|
# Redirect URI for OAuth callback (must match WorkOS dashboard config)
|
|
NEXT_PUBLIC_WORKOS_REDIRECT_URI=http://localhost:3000/callback
|
|
|
|
# NetSuite Integration
|
|
# OAuth 2.0 credentials from your NetSuite account
|
|
NETSUITE_ACCOUNT_ID=your_account_id_here
|
|
NETSUITE_CLIENT_ID=your_client_id_here
|
|
NETSUITE_CLIENT_SECRET=your_client_secret_here
|
|
NETSUITE_REDIRECT_URI=http://localhost:3000/api/netsuite/callback
|
|
|
|
# Token encryption key (generate with: openssl rand -hex 32)
|
|
NETSUITE_TOKEN_ENCRYPTION_KEY=your_encryption_key_here
|
|
|
|
# Optional: Max concurrent requests to NetSuite API (default: 15)
|
|
NETSUITE_CONCURRENCY_LIMIT=15
|
|
|
|
# Optional: For Automatic Github Deployments
|
|
GITHUB_TOKEN=your_github_repo_token_here
|
|
GITHUB_REPO=High-Performance-Structures/compass
|
|
|