Root repo: CLAUDE.md, _template, server.js, scripts, deploy scripts
Go to file
posimai 7454b0eda5 feat: add Magic Link + Passkey (WebAuthn) authentication to server.js
- Add JWT session auth (jsonwebtoken v9) alongside legacy API key auth
- Magic Link: POST /auth/magic-link/send + GET /auth/magic-link/verify
- Passkey: register/begin+finish, login/begin+finish endpoints
- Session: GET /auth/session/verify, DELETE /auth/session
- Passkey management: GET/DELETE /auth/passkeys
- New DB tables: magic_link_tokens, passkey_credentials, auth_sessions,
  magic_link_rate_limit, webauthn_user_handles
- Users table: add email + email_verified columns (migration)
- Rate limiting on magic link sends (3 per 10min per email)
- Resend email integration (stubbed until DNS verified)
- SimpleWebAuthn v13 (ESM) loaded via dynamic import
- authMiddleware: JWT-first, fallback to API key (backward compat)
- WEBAUTHN_RP_ID/ORIGINS/JWT_SECRET configurable via env vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 08:31:11 +09:00
_template chore: initial backup of root config, templates, and server source 2026-03-17 17:19:20 +09:00
_template-minimal feat: add posimai-ui design system, update template and docs 2026-03-19 10:10:11 +09:00
docs docs: track docs/ in git, add api-key-architecture, remove stale handoffs 2026-03-19 11:07:12 +09:00
scripts feat: add memory-push.sh hook and aider-run.sh for Synology 2026-03-17 22:25:14 +09:00
.gitignore chore: add posimai-ui to .gitignore (individual repo) 2026-03-19 11:31:00 +09:00
AGENTS.md chore: add Roadmap app registration to new app checklist; clarify pre-impl steps 2026-03-22 23:43:53 +09:00
APP_IDEAS.md docs: add APP_IDEAS.md, reference in CLAUDE/AGENTS, fix ponshu APK link 2026-03-22 13:27:56 +09:00
CLAUDE.md chore: add Roadmap app registration to new app checklist; clarify pre-impl steps 2026-03-22 23:43:53 +09:00
claude-settings.json chore: allow Write and Edit tools in settings 2026-03-19 10:02:47 +09:00
create-app.sh feat: add create-app.sh, _template-minimal, update deploy-server.sh (passwordless), update CLAUDE.md 2026-03-17 22:13:39 +09:00
deploy-server.sh fix: update deploy-server.sh to target VPS instead of Synology 2026-03-25 23:23:31 +09:00
server.js feat: add Magic Link + Passkey (WebAuthn) authentication to server.js 2026-03-26 08:31:11 +09:00