This commit is contained in:
sim0n00ps 2025-05-05 21:40:06 +01:00
parent 09c14be5dd
commit 4abbf1162d

View File

@ -533,8 +533,11 @@ public class Program
catch (Exception _)
{
Log.Information("Auth file found but could not be deserialized");
if (!config!.DisableBrowserAuth)
{
Log.Debug("Deleting auth.json");
File.Delete("auth.json");
}
if (cliNonInteractive)
{
@ -744,9 +747,12 @@ public class Program
Log.Error("Auth failed");
auth = null;
if (!config!.DisableBrowserAuth)
{
if (File.Exists("auth.json"))
{
File.Delete("auth.json");
}
}
if (!cliNonInteractive && !config!.DisableBrowserAuth)