Browse Source

Merge pull request #21553 from abpframework/berkan/cli

Ensure `.abp/cli` folder created when executing login command
pull/21554/head
Engincan VESKE 2 years ago
committed by GitHub
parent
commit
8680729c53
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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