Fix password prompt feedback

This commit is contained in:
Kabir Oberai
2024-12-21 22:23:51 +05:30
Unverified
parent 21efc6126a
commit fbf021f42d
2 changed files with 4 additions and 0 deletions
@@ -29,6 +29,8 @@ struct AuthOperation {
throw Console.Error("Password cannot be empty.")
}
print("Logging in...")
let deviceInfo = try DeviceInfo.fetch()
let provider = try ADIDataProvider.adiProvider(
@@ -25,6 +25,8 @@ enum Console {
try await withStdio { stdin, stdout in
try await stdout.write(ByteBuffer(bytes: message.utf8))
fflush(stdoutSafe)
var data = Data()
for try await chunk in stdin {
let view = chunk.readableBytesView