OAuth token becomes undecryptable after cloud VM replacement (CLI v0.29.0) — seeking persistent auth guidance

Aperta
#1,290 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by locating the CLI authentication and token storage code for v0.29.0; the issue does not name files or tests. Trace how the token is encrypted and loaded across VM replacement, then check existing documentation for supported persistent authorization or token backup guidance. Done means the project provides a documented, reliable approach for this setup or explains that none is supported.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Setup

  • Longbridge CLI v0.29.0 (official)
  • OAuth device-code flow, agent name "Muse"
  • Running on an ephemeral cloud VM platform: the VM gets replaced frequently (4 replacements on 2026-10-12 alone). The home directory migrates to the new VM, so files persist.

Problem

After every VM replacement, the locally stored token fails to load:

Authentication failed: Failed to decrypt auth token.

The CLI then requires longbridge auth login again. Re-authenticating via the device flow restores full access immediately — no 403s, no rate limiting. The failure happens locally before any network request, which suggests the token is encrypted with a machine-bound key that doesn't survive the VM swap.

Impact

I have to re-authenticate several times a day, which breaks unattended monitoring.

Question

Is there a more persistent authorization mechanism for this kind of setup, or official guidance on backing up / restoring the token so a VM replacement doesn't invalidate it?

(Support at [email protected] directed me to open an issue here.)

Lingua principale
TypeScript
Stelle
61
Fork
30
Merge medio
7h 27m
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di longbridge/developers

Tutte le issue di longbridge/developers

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.