Skip to content

fix: refresh tokens in approve command when unauthorized#493

Merged
dyc3 merged 2 commits into
masterfrom
pullfrog/460-fix-approve-token-refresh
Apr 14, 2026
Merged

fix: refresh tokens in approve command when unauthorized#493
dyc3 merged 2 commits into
masterfrom
pullfrog/460-fix-approve-token-refresh

Conversation

@pullfrog

@pullfrog pullfrog Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Fixes #460.

What changed

  • approve now handles Unauthorized from list_auth_sessions by re-running login, which refreshes tokens when possible.
  • After re-login, it retries listing auth sessions once.
  • When no sessions are pending, the command now continues to the next account instead of returning early from the entire command.

Validation

  • cargo test -p steamguard-cli --bin steamguard

Pullfrog  | View workflow run | Triggered by Pullfrog | Using GPT Codex𝕏

Comment thread src/commands/approve.rs Outdated
@dyc3 dyc3 enabled auto-merge (squash) April 14, 2026 14:09
@dyc3 dyc3 merged commit 42e00f7 into master Apr 14, 2026
3 checks passed
@dyc3 dyc3 deleted the pullfrog/460-fix-approve-token-refresh branch April 14, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

steamguard approve does not refresh login tokens automatically

1 participant