Skip to content

Commit c424601

Browse files
committed
fix: better token handling
1 parent b6c021f commit c424601

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

FossyApiDemo/MainForm.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ private void BtnGetTokenClick(object sender, EventArgs e)
162162

163163
this.txtToken.Text = token;
164164
log.Info("Token has been inserted into token text box.");
165+
166+
// clear existing client, because it has been initialized with an old token
167+
this.client = null;
165168
}
166169
catch (Exception ex)
167170
{

0 commit comments

Comments
 (0)