Commit Graph

4 Commits

Author SHA1 Message Date
Timo Knuth 307135671f fix: import get/run from sqlite in server index
The billing/summary endpoint was crashing with 'get is not defined'
because the sqlite helper functions were not imported in server/index.js.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 17:08:03 +01:00
Timo Knuth 98e5bfbafd fix: add auth endpoints to server, fix auth bypass and registration
- server/: commit server code for the first time (was untracked)
  - POST /auth/signup and /auth/login endpoints now deployed
  - GET /v1/billing/summary now verifies user exists in auth_users
    (prevents stale JWTs from bypassing auth → fixes empty dashboard)
- app/_layout.tsx: dual-marker install check (SQLite + SecureStore)
  to detect fresh installs reliably on Android
- app/auth/login.tsx, signup.tsx: replace Ionicons leaf logo with
  actual app icon image (assets/icon.png)
- services/authService.ts: log HTTP status + server message on auth errors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 11:08:32 +01:00
knuthtimo-lab 024eec6686 feat: Initialize GreenLens project with core dependencies and structure
Sets up the project using Vite, React, and TypeScript. Includes initial configuration for Tailwind CSS, Gemini API integration, and local storage management. Defines basic types for plant data and UI elements. The README is updated with local development instructions.
2026-01-28 11:43:24 +01:00
knuthtimo-lab 85960de05f
Initial commit 2026-01-28 11:43:14 +01:00