Never delete auth.json

This commit is contained in:
Casper Sparre 2026-01-16 18:33:44 +01:00
parent f148070426
commit d1968d2981

View File

@ -673,8 +673,8 @@ public class Program
Log.Information("Auth file found but could not be deserialized");
if (!config!.DisableBrowserAuth)
{
Log.Debug("Deleting auth.json");
File.Delete("auth.json");
//Log.Debug("Deleting auth.json");
//File.Delete("auth.json");
}
if (cliNonInteractive)
@ -945,10 +945,10 @@ public class Program
auth = null;
if (!config!.DisableBrowserAuth)
{
if (File.Exists("auth.json"))
{
File.Delete("auth.json");
}
//if (File.Exists("auth.json"))
//{
// File.Delete("auth.json");
//}
}
if (!cliNonInteractive && !config!.DisableBrowserAuth)