Skip to content

Handle expired session on logout and clear token on 401#34

Merged
keypair34 merged 1 commit intodevelopmentfrom
feature/fix-session-handling
Apr 7, 2026
Merged

Handle expired session on logout and clear token on 401#34
keypair34 merged 1 commit intodevelopmentfrom
feature/fix-session-handling

Conversation

@keypair34
Copy link
Copy Markdown
Collaborator

Fixes #32

- Treat 401 Unauthorized during logout as success since the session
  is already expired on the server
- Clear the local token and show a helpful message when any command
  fails with "Unauthorized access."
- Add clear_smb_token helper to remove the token file for an environment
Copy link
Copy Markdown
Collaborator

@setoelkahfi setoelkahfi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@keypair34 keypair34 merged commit 2318071 into development Apr 7, 2026
2 checks passed
@keypair34 keypair34 deleted the feature/fix-session-handling branch April 7, 2026 05:26
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.

Handle token expired

3 participants