feat: bearer auth, auto-sync events, test seed

- Add bearer plugin to BetterAuth for mobile auth
- Auto-sync birthday/anniversary events on client create/update
- Add /api/events/sync-all endpoint for bulk sync
- Add test user seed (test@test.com / test)
- Expose set-auth-token header in CORS
This commit is contained in:
2026-01-27 22:12:33 +00:00
parent f9643235be
commit 7bd506463e
8 changed files with 206 additions and 4 deletions

10
entrypoint.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
# Run seed (creates test user if not exists)
echo "Running database seed..."
bun run db:seed || echo "Seed skipped or failed (may already exist)"
# Start the app
echo "Starting API..."
exec bun run src/index.ts