Skip to content

fix(drivers/quark_uc_tv): auto re-scan when refresh token is invalid#2369

Open
SickoGt wants to merge 2 commits into
OpenListTeam:mainfrom
SickoGt:main
Open

fix(drivers/quark_uc_tv): auto re-scan when refresh token is invalid#2369
SickoGt wants to merge 2 commits into
OpenListTeam:mainfrom
SickoGt:main

Conversation

@SickoGt

@SickoGt SickoGt commented Apr 17, 2026

Copy link
Copy Markdown

fix(quark_uc_tv): auto re-scan when refresh token is invalid (#557)

Description / 描述

  • Return API error_info message instead of hardcoded string when refresh token is empty
  • Add reInit() to reset auth state (QueryToken, RefreshToken) and immediately re-trigger QR code flow
  • Add handleInvalidRefreshToken() to centralize invalid token detection across request() and Init()

Motivation and Context / 背景

When the Refresh Token becomes invalid, the driver returned a generic error
and required the user to manually disable and re-enable the storage to trigger
re-authentication. This change automatically detects the "Refresh Token无效"
error, clears the stale credentials, and immediately presents a new QR code
for re-scanning without any manual intervention.

Closes #557

How Has This Been Tested? / 测试

Manually invalidated the stored refresh token and triggered a file listing
request. Confirmed the driver automatically resets auth state and returns a
new QR code for re-scanning without requiring a storage restart.

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
  • I have formatted my code with go fmt or prettier.
  • I have added appropriate labels to this PR.
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
  • I have updated the repository accordingly (If it's needed).

SickoGt added 2 commits April 17, 2026 14:18
…tTeam#557)

- Return API error message instead of hardcoded string when token is empty
- Add reInit() to reset auth state and re-trigger QR code flow
- Add handleInvalidRefreshToken() to centralize invalid token detection
@xrgzs xrgzs changed the title fix(quark_uc_tv): auto re-scan when refresh token is invalid (#557) fix(drivers/quark_uc_tv): auto re-scan when refresh token is invalid Jun 17, 2026
@xrgzs xrgzs added the Module: Driver Driver-Related Issue/PR label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module: Driver Driver-Related Issue/PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 夸克TV无法显示二维码

2 participants