Skip to content

Commit

Permalink
Merge pull request #44 from Peaj/fix-file-not-found
Browse files Browse the repository at this point in the history
Fix FixFileNotFoundException during authorization
  • Loading branch information
JoshLmao authored Jul 26, 2021
2 parents dc48ceb + 38e75fd commit 6a5a6e6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ private PKCETokenResponse LoadPKCEToken()
// Load token from File
if (!string.IsNullOrEmpty(PKCEConfig.TokenPath))
{
if (!File.Exists(PKCEConfig.TokenPath))
{
return null;
}
string previousToken = File.ReadAllText(PKCEConfig.TokenPath);
if (string.IsNullOrEmpty(previousToken))
{
Expand Down

0 comments on commit 6a5a6e6

Please sign in to comment.