Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add signout command #140

Merged
merged 2 commits into from
Mar 18, 2021
Merged

Add signout command #140

merged 2 commits into from
Mar 18, 2021

Conversation

senmu
Copy link
Contributor

@senmu senmu commented Mar 17, 2021

Addresses enhancement #136

What changed

A new signout command has been added to:

  • Remove all Keychain items
  • Remove cookies in the shared URLSession
  • Set defaultUsername in Configuration to nil

xcodes-signout

Addresses enhancement: XcodesOrg#136
@senmu senmu requested a review from a team as a code owner March 17, 2021 05:12
@MattKiazyk MattKiazyk added the enhancement New feature or request label Mar 17, 2021
Copy link
Contributor

@MattKiazyk MattKiazyk left a comment

Choose a reason for hiding this comment

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

All good Sam - just one picky comment out the language.. take it or leave it. Nothing to die on.

@@ -27,6 +28,8 @@ public class Client {
return "Not a valid phone number index. Expecting a whole number between \(min)-\(max), but was given \(given ?? "nothing")."
case .noTrustedPhoneNumbers:
return "Your account doesn't have any trusted phone numbers, but they're required for two-factor authentication. See https://support.apple.com/en-ca/HT204915."
case .notAuthenticated:
return "No authenticated session found"
Copy link
Contributor

Choose a reason for hiding this comment

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

image
Do you think the red is a little harsh for the error? It really just is an info statement. Perhaps the description here would be better a little less error like. You are already signed out ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like both suggestions 👍
Implemented it in d49c722

@senmu senmu merged commit d185259 into XcodesOrg:main Mar 18, 2021
@senmu senmu deleted the add-signout-command branch March 18, 2021 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants