deckhearth/pages/api
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
..
admin Major redesign: Enhanced card display with particle effects, improved filters, and search functionality 2025-07-23 21:26:54 -05:00
auth Fixed authentication API endpoints and login functionality 2025-07-24 19:57:19 -05:00
cards Created comprehensive admin card editor 2025-07-24 15:16:57 -05:00
auth-utils.js Major redesign: Enhanced card display with particle effects, improved filters, and search functionality 2025-07-23 21:26:54 -05:00
collections.js Enhanced card detail page with real data and functionality 2025-07-24 15:03:09 -05:00
decks.js Enhanced card detail page with real data and functionality 2025-07-24 15:03:09 -05:00
health.js Clean slate: Remove React traces and create pure Next.js setup 2025-07-23 09:32:31 -05:00
setup-database.js Fix bcryptjs imports to use dynamic imports 2025-07-23 09:40:50 -05:00
simple.js Add simple API test without dependencies 2025-07-23 09:42:30 -05:00
test-auth.js Major redesign: Enhanced card display with particle effects, improved filters, and search functionality 2025-07-23 21:26:54 -05:00
test-db.js Major redesign: Enhanced card display with particle effects, improved filters, and search functionality 2025-07-23 21:26:54 -05:00