- Updated login and register APIs to use proper Vercel Postgres imports - Fixed database queries to use sql template literal syntax - Replaced old auth-utils imports with direct bcrypt and jwt usage - Consistent JWT token generation across login and register endpoints - Removed debugging console.log statements - Login API now returns 200 with proper user data and JWT token - All authentication endpoints working correctly with Neon database - Login flow redirects properly to dashboard/admin based on user role |
||
|---|---|---|
| .. | ||
| admin | ||
| auth | ||
| cards | ||
| auth-utils.js | ||
| collections.js | ||
| decks.js | ||
| health.js | ||
| setup-database.js | ||
| simple.js | ||
| test-auth.js | ||
| test-db.js | ||