Browse Source

Ensure `.abp/cli` folder created when executing login command

pull/21553/head
Berkan Sasmaz 2 years ago
parent
commit
0c97cfd0e8
  1. 6
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs

6
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs

@ -85,7 +85,11 @@ public class AuthService : IAuthService, ITransientDependency
}
var accessToken = await AuthenticationService.GetAccessTokenAsync(configuration);
if (!Directory.Exists(CliPaths.Root))
{
Directory.CreateDirectory(CliPaths.Root);
}
File.WriteAllText(CliPaths.AccessToken, accessToken, Encoding.UTF8);
}

Loading…
Cancel
Save