You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**CRITICAL**: Next.js 16.0.0+ includes built-in Model Context Protocol (MCP) server support for AI-assisted development. StormCom REQUIRES both MCP servers for optimal Copilot agent experience.
@@ -1297,7 +1497,7 @@ npm run dev
1297
1497
1298
1498
**Benefits for StormCom Development**:
1299
1499
-**Context-Aware Suggestions**: Agent recommends features based on existing structure
1300
-
-**Live Application State**: Query current routes, middleware, errors during development
1500
+
-**Live Application State**: Query current routes, proxy configuration, errors during development
1301
1501
-**Multi-Tenant Awareness**: Agent understands route groups and tenant isolation patterns
1302
1502
-**Performance Insights**: Get recommendations based on actual performance metrics
1303
1503
-**Accurate Implementations**: Generate code following StormCom patterns and conventions
- ✅ **Custom Auth System** (JWT + Vercel KV session storage) - **NOTE**: NextAuth.js v5 incompatible with Next.js 16; custom implementation used instead (see plan.md, tasks.md).
187
+
- ✅ **NextAuth.js**`v4.24.13` - Official authentication framework configured for Next.js `v16.0.1`. Use NextAuth.js v4.24.13 for session management (JWT sessions), provider integrations, and optional 2FA/TOTP flows. In production, session state SHOULD be stored in Vercel KV or another secure session store. This replaces the prior custom-auth note: NextAuth v4.x is the supported authentication system for the project and is verified compatible with Next.js 16.0.1.
@@ -275,7 +300,7 @@ Performance is a priority. All features must meet defined performance budgets: p
275
300
Ensure all user data is encrypted at rest and in transit. Follow industry best practices for authentication and authorization, including HTTPS, secure cookies, and role-based access control.
276
301
277
302
**Authentication & Authorization**
278
-
- Use NextAuth.js v4+ for authentication.
303
+
- Use NextAuth.js `v4.24.13` (compatible with Next.js `v16.0.1`) for authentication. Configure providers, JWT session handling, and optional 2FA/TOTP via NextAuth integrations where applicable. Session cookies MUST be HTTP-only and SameSite=Lax; store session state in Vercel KV in production.
279
304
- Implement JWT sessions with HTTP-only cookies (SameSite=Lax).
280
305
- Hash passwords with bcrypt (cost factor: 12).
281
306
- Enforce Role-Based Access Control (RBAC) with granular permissions.
@@ -309,4 +334,4 @@ Ensure compliance with GDPR, CCPA, and other relevant data protection regulation
309
334
310
335
This constitution supersedes all other practices. Amendments require documentation, approval, and a migration plan. All pull requests and reviews must verify compliance with the principles outlined in this document. Complexity must be justified, and runtime development guidance must be followed as outlined in the project documentation.
0 commit comments