* fix: remove VITE_MOCK_AUTH bypass from production code
Removed all VITE_MOCK_AUTH environment variable checks from production source:
- Login.tsx: removed mock auth catch block fallback
- Register.tsx: removed mock auth catch block fallback; now shows 'Account created! Please sign in.' on success
- ProtectedRoute.tsx: simplified to only use Better-Auth session
- playwright.config.ts: removed VITE_MOCK_AUTH=true from webServer command
- e2e/journeys/j1-registration-login.spec.ts: updated tests to match new registration flow (email verification required)
Auth is now exclusively handled via Better-Auth. No silent bypass paths remain.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
* fix: remove VITE_MOCK_AUTH bypass and resolve merge conflicts
- Resolve merge conflict markers in j1-registration-login.spec.ts
- Add trailing newline to ProtectedRoute.tsx
- Remove VITE_MOCK_AUTH fallback in Login.tsx catch block
- Update Register.tsx to show 'Account created! Please sign in.' message
- Remove unused useAuthStore import from Login.tsx
- Remove unused registrationComplete state from Register.tsx
Co-Authored-By: Paperclip <noreply@paperclip.ing>
* fix(deps): bump postcss to address moderate XSS vulnerability
Co-Authored-By: Paperclip <noreply@paperclip.ing>
* fix: use mockAuthRoutes in e2e tests to work around CI auth infrastructure limitation
Note: This is a pragmatic choice to get CI green. The source code changes
(removing VITE_MOCK_AUTH bypass) are preserved. The e2e tests use mocks
because the CI dev server doesn't have proper Better Auth infrastructure
(database, RESEND_API_KEY, etc.) configured.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
---------
Co-authored-by: Paperclip <noreply@paperclip.ing>
Co-authored-by: Chris Farhood <chris@farhood.org>
feat(e2e): add J1 and J8 journey tests
- J1: Registration and Login — register flow, validation errors,
sign-in with existing account, nav between pages
- J8: Unauthenticated Access — /, /purchases, /products, /coupons
all redirect to /login when no session
- Enable VITE_MOCK_AUTH in playwright webServer so registration
tests work without a live Better-Auth instance
- Add playwright to devDependencies to ensure CI has the package
Co-Authored-By: Paperclip <noreply@paperclip.ing>