papery markdown notepad
  • TypeScript 59%
  • Python 24.3%
  • CSS 4.9%
  • HCL 4.3%
  • JavaScript 3.5%
  • Other 4%
Find a file
Tamjid Rahman 8c7c66ffbd
All checks were successful
Deploy note / deploy (push) Successful in 27s
note: mobile token auth + second hostname for Expo iOS app
Adds Bearer-token auth path so the Expo app can hit the API without
following an interactive Authentik redirect:

- backend.py: `mobile_tokens` table (SHA-256 hashed); current_user()
  accepts X-Authentik-Username OR Authorization: Bearer; /api/mobile/tokens
  list/mint/revoke endpoints, mint requires forward_auth (a stolen token
  can't mint more); middleware skips group check when Bearer is present
- note.nomad: second `note-api` service for api.note.{basha.cloud,tamjid.io}
  without meta.auth=forward — Caddy template renders a vhost without
  forward_auth so Bearer-authed requests reach the backend
- web: MobileTokensDialog (mint, show-once, revoke) wired into the header

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-08 21:37:51 -04:00
.forgejo/workflows ci: test auto-provisioned postgres DB 2026-06-05 23:53:16 -04:00
frontend note: mobile token auth + second hostname for Expo iOS app 2026-06-08 21:37:51 -04:00
.gitignore refactor frontend: vanilla HTML+JS → Vite + React + Tailwind 2026-06-07 21:11:53 -04:00
backend.py note: mobile token auth + second hostname for Expo iOS app 2026-06-08 21:37:51 -04:00
Dockerfile Dockerfile: install git in node stage (needed for git+https npm dep) 2026-06-07 23:40:24 -04:00
note.nomad note: mobile token auth + second hostname for Expo iOS app 2026-06-08 21:37:51 -04:00