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

Commit d81336b

Browse files
Fixes to Update/Clear in KeychainAdapter
1 parent a7f5516 commit d81336b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GitHub.Api/Authentication/KeychainAdapter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ public void Set(ICredential credential)
1717
public void UpdateToken(string token)
1818
{
1919
Credential.UpdateToken(token);
20+
OctokitCredentials = new Credentials(OctokitCredentials.Login, token);
2021
}
2122

2223
public void Clear()
2324
{
2425
OctokitCredentials = Credentials.Anonymous;
26+
Credential = null;
2527
}
2628

2729
/// <summary>

0 commit comments

Comments
 (0)