Files
vibn-frontend/package.json
Mark Henderson bbb22f1c37 Switch from SuperTokens to NextAuth.js
BREAKING CHANGE: Replace SuperTokens with NextAuth.js

Why:
- SuperTokens had persistent Traefik routing issues
- SSL certificate not issuing correctly
- Complex infrastructure (separate container)
- NextAuth runs in Next.js app (simpler, no separate service)

Changes:
- Install next-auth, @auth/prisma-adapter, prisma
- Create NextAuth API route: app/api/auth/[...nextauth]/route.ts
- Add Prisma schema for NextAuth tables (users, sessions, accounts)
- Update auth page to use NextAuth signIn()
- Remove all SuperTokens code and dependencies
- Keep same Google OAuth (just simpler integration)

Benefits:
- No separate auth service needed
- No Traefik routing issues
- Sessions stored in Montreal PostgreSQL
- Simpler configuration
- Battle-tested, widely used

All authentication data stays in Montreal!

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 15:12:21 -08:00

75 lines
2.4 KiB
JSON

{
"name": "vibn-frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "prisma generate && prisma db push --accept-data-loss && next build",
"start": "next start",
"lint": "eslint",
"postinstall": "prisma generate",
"test:db": "tsx scripts/test-alloydb.ts",
"migrate:postgres": "tsx scripts/migrate-from-postgres.ts",
"migrate:reassign": "tsx scripts/reassign-migrated-data.ts",
"firebase:emulators": "firebase emulators:start",
"firebase:deploy:rules": "firebase deploy --only firestore:rules,storage",
"firebase:deploy:indexes": "firebase deploy --only firestore:indexes",
"firebase:deploy:app": "npm run build && firebase deploy --only functions,hosting",
"firebase:deploy:all": "npm run build && firebase deploy",
"mcp:server": "node mcp-server.js"
},
"dependencies": {
"@auth/core": "^0.34.3",
"@auth/prisma-adapter": "^2.11.1",
"@google-cloud/vertexai": "^1.10.0",
"@google/genai": "^1.30.0",
"@google/generative-ai": "^0.24.1",
"@modelcontextprotocol/sdk": "^1.22.0",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-tabs": "^1.1.13",
"@types/pg": "^8.15.6",
"@types/uuid": "^10.0.0",
"@v0-sdk/react": "^0.4.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dotenv": "^17.2.3",
"firebase": "^12.5.0",
"google-auth-library": "^10.5.0",
"lucide-react": "^0.553.0",
"next": "16.0.1",
"next-auth": "^4.24.13",
"next-themes": "^0.4.6",
"pg": "^8.16.3",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
"tsx": "^4.20.6",
"uuid": "^13.0.0",
"v0-sdk": "^0.14.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@prisma/client": "^5.22.0",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.0.1",
"firebase-admin": "^13.6.0",
"firebase-functions": "^7.0.0",
"prisma": "^5.22.0",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5"
}
}