{"action":"created","issue":{"url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2302","repository_url":"https://api.github.com/repos/GitHawkApp/GitHawk","labels_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2302/labels{/name}","comments_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2302/comments","events_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2302/events","html_url":"https://github.com/GitHawkApp/GitHawk/issues/2302","id":370767954,"node_id":"MDU6SXNzdWUzNzA3Njc5NTQ=","number":2302,"title":"Sign out only the current user","user":{"login":"BasThomas","id":4190298,"node_id":"MDQ6VXNlcjQxOTAyOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/4190298?v=4","gravatar_id":"","url":"https://api.github.com/users/BasThomas","html_url":"https://github.com/BasThomas","followers_url":"https://api.github.com/users/BasThomas/followers","following_url":"https://api.github.com/users/BasThomas/following{/other_user}","gists_url":"https://api.github.com/users/BasThomas/gists{/gist_id}","starred_url":"https://api.github.com/users/BasThomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BasThomas/subscriptions","organizations_url":"https://api.github.com/users/BasThomas/orgs","repos_url":"https://api.github.com/users/BasThomas/repos","events_url":"https://api.github.com/users/BasThomas/events{/privacy}","received_events_url":"https://api.github.com/users/BasThomas/received_events","type":"User","site_admin":false},"labels":[{"id":635423596,"node_id":"MDU6TGFiZWw2MzU0MjM1OTY=","url":"https://api.github.com/repos/GitHawkApp/GitHawk/labels/feature","name":"feature","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-16T19:39:37Z","updated_at":"2018-10-16T19:52:38Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Describe the solution you'd like**\r\nWhen you sign out, all user sessions are removed. It would be nice if it would only logout the current user session.\r\n\r\n**Describe alternatives you've considered**\r\nLeave it as-is.\r\n\r\n**Additional context**\r\nI didn't look at the implementation and wanted to make the button more user friendly by including the user that would be logged out... then I found out we log out all users (and we warn we do).\r\n\r\nAll I added for now was the following in `SettingsViewController`'s `viewDidLoad()`:\r\n\r\n```swift\r\nif sessionManager.userSessions.count > 1 {\r\n    guard let userSession = sessionManager.focusedUserSession else {\r\n        // If this won't be hit, it can be replaced with a force unwrapped\r\n        // focused user session or a `fatalError` instead.\r\n        return assertionFailure(\"Expected to have a focused user session\")\r\n    }\r\n    signOutCell.textLabel?.text = \"\\(Constants.Strings.signout) \\(userSession.username)\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/comments/430376455","html_url":"https://github.com/GitHawkApp/GitHawk/issues/2302#issuecomment-430376455","issue_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2302","id":430376455,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDM3NjQ1NQ==","user":{"login":"BasThomas","id":4190298,"node_id":"MDQ6VXNlcjQxOTAyOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/4190298?v=4","gravatar_id":"","url":"https://api.github.com/users/BasThomas","html_url":"https://github.com/BasThomas","followers_url":"https://api.github.com/users/BasThomas/followers","following_url":"https://api.github.com/users/BasThomas/following{/other_user}","gists_url":"https://api.github.com/users/BasThomas/gists{/gist_id}","starred_url":"https://api.github.com/users/BasThomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BasThomas/subscriptions","organizations_url":"https://api.github.com/users/BasThomas/orgs","repos_url":"https://api.github.com/users/BasThomas/repos","events_url":"https://api.github.com/users/BasThomas/events{/privacy}","received_events_url":"https://api.github.com/users/BasThomas/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T19:52:38Z","updated_at":"2018-10-16T19:52:38Z","author_association":"COLLABORATOR","body":"That's another option, but would make it harder to find how to logout, which I'm not sure is a tradeoff we shoud make."}}
{"actor":{"display_login":"BasThomas"}}