Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 9ac303a

Browse files
StanleyGoldmanshana
authored andcommitted
Clearing the keychain before we remove the credential (#707)
* Clearing the keychain before we remove the credential
1 parent 4d09872 commit 9ac303a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitHub.Api/Authentication/Keychain.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ public async Task Clear(UriString host, bool deleteFromCredentialManager)
152152

153153
Guard.ArgumentNotNull(host, nameof(host));
154154

155+
RemoveConnection(host);
156+
155157
//clear octokit credentials
156158
await RemoveCredential(host, deleteFromCredentialManager);
157-
RemoveConnection(host);
158159
}
159160

160161
public async Task Save(UriString host)

0 commit comments

Comments
 (0)