qr-authentication-workflows
Use for short-lived QR/PIN login flows with local bridges.
- License 许可
- MIT
- 所属仓库
- zapabob/Skills
- 最近更新
- 2026-10-26
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- qr-authentication-workflows
- author
- Hermes Agent
- license
- MIT
- version
- 1.0.1
- metadata
- { "hermes": { "tags": [ "qr", "authentication", "local-bridge", "session-safety" ], "related_skills": [ "line-personal-bridge" ] } }
- description
- Use for short-lived QR/PIN login flows with local bridges.
03 SKILL.md 正文
QR Authentication Workflows
Use this class-level skill for QR-based authentication where a local bridge or companion worker must be authorized from a phone while protecting an existing desktop session.
Core workflow
- Stop competing workers before issuing a new challenge.
- Start exactly one QR-only login attempt.
- Immediately inspect status for
loginState,qrUrl,qrAvailable, and PIN/number state. - Render the QR from the current status response; never reuse a cached URL or image.
- Ask the operator to scan and complete mobile confirmation immediately.
- Do not restart while
loginStateislogging_in; restarting invalidates the active challenge. - Verify
loginState: ready, profile presence, and a real authenticated API operation before declaring success. - If the QR or PIN expires, discard the entire challenge generation and issue one fresh challenge.
Session-safety pitfalls
- Do not silently fall back from QR to email/password or another credential login. A fallback can create a competing device session and repeatedly evict the desktop client.
- Do not run multiple forced starts while a QR challenge is active.
- QR availability does not prove authentication. Keep issuance, scan, mobile confirmation, readiness, and API usability as separate evidence checkpoints.
- If the bridge reports mobile verification cancellation such as
E2EE_GROUP_TOO_MANY_MEMBERS/ 「スマートフォンでの本人確認がキャンセルされました」, treat it as a failed challenge and reissue a fresh QR.
LINEjs implementation pattern
For a LINEjs personal bridge that coexists with PC LINE:
- Force
LINEJS_PERSONAL_LOGIN_MODE=qrin the worker launcher. - Remove stale email/password/auth-token variables from the child environment.
- Give
loginMode === "qr"its own branch that calls onlyloginWithQR. - While
loginState === "logging_in", keepalive must return without starting another login. - After session loss, expose a QR-required state or wait for an operator-triggered restart; do not auto-relogin with credentials.
Operator-facing communication
Keep instructions short and concrete. State that the image is newly generated, warn that QR and PIN/認証番号 expire quickly, identify the exact image, and ask for one explicit confirmation after scanning. Never report success from QR issuance alone.
References
references/short-lived-qr-challenges.md— LINEjs expiry, cancellation, recovery, and verification evidence.
04 同仓库更多 Skills
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
writing-plans
Write implementation plans: bite-sized tasks, paths, code.
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
weights-and-biases
W&B: log ML experiments, sweeps, model registry, dashboards.
watchers
Poll RSS, JSON APIs, and GitHub with watermark dedup.
serving-llms-vllm
vLLM: high-throughput LLM serving, OpenAI API, quantization.