deckhearth/pages/api/auth
Randall Stillwell 3bb1c9357a Fixed authentication API endpoints and login functionality
- 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
2025-07-24 19:57:19 -05:00
..
login.js Fixed authentication API endpoints and login functionality 2025-07-24 19:57:19 -05:00
register.js Fixed authentication API endpoints and login functionality 2025-07-24 19:57:19 -05:00
verify.js Integrated real database authentication with JWT tokens 2025-07-24 16:36:10 -05:00