diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-09-26 00:19:53 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-09-26 00:19:53 +0900 |
| commit | 874749df46cc291ca61f2f98092ccabfdeffbf16 (patch) | |
| tree | e4cb53b5bfa23974e7935eb2616e0e005954f782 /Deploy.md | |
| parent | 999b7a3133fccc3f120ac5ae24c02bb38a4ecce9 (diff) | |
Single-user auth: any registered passkey logs in as the owner. First
registration needs a one-time token that the app writes to
data/registration-token when no passkey exists yet; once logged in,
more passkeys can be added without a token.
Logged in, /favorites manages a list of terms (e.g. band names).
Events whose title or artist contains a term (NFKC + case-insensitive)
get a ★, and the event list gains an "お気に入りのみ" filter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'Deploy.md')
| -rw-r--r-- | Deploy.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -66,6 +66,22 @@ git remote add hetzner golive:/var/git/tokyo-livehouse-events.git git push hetzner master ``` +## パスキー(ログイン) + +利用者は1人。どのパスキーでログインしても同じオーナー扱い。ログインするとお気に入りワード(`/favorites`)が使える。 + +```bash +# 初回登録: パスキー未登録なら /login へのアクセス時にトークンが自動生成される +curl -s https://golive.yyamashita.com/login > /dev/null +ssh root@localhost 'cat /app/tokyo-livehouse-events/data/registration-token' +# → https://golive.yyamashita.com/login?token=<トークン> を開いて登録(トークンは1回で消える) + +# 全デバイスを失った場合: トークンを手で作って再登録 +ssh root@localhost 'openssl rand -base64 24 | tr "+/" "-_" > /app/tokyo-livehouse-events/data/registration-token' +``` + +2台目以降は、ログイン済みの状態で `/favorites` →「パスキーを追加」。 + ## ローカル開発 ```bash |
