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

Đang mở
#1,290 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
authentication

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.)

Ngôn ngữ chính
TypeScript
Star
61
Fork
30
Merge trung bình
7 giờ 27 phút
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của longbridge/developers

Tất cả issue của longbridge/developers

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.