Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

Improve auth status

Kabir Oberai9b7ecd1ee098
diff --git a/Sources/SupersignCLISupport/AuthCommand.swift b/Sources/SupersignCLISupport/AuthCommand.swift
index 5b9439e..8ad5b58 100644
--- a/Sources/SupersignCLISupport/AuthCommand.swift
+++ b/Sources/SupersignCLISupport/AuthCommand.swift
@@ -137,7 +137,12 @@ struct AuthStatusCommand: AsyncParsableCommand {
func run() async throws {
if let token = try? AuthToken.saved() {
- print("Logged in: \(token.appleID)")
+ print("""
+ Logged in.
+ - Apple ID: \(token.appleID)
+ - Team ID: \(token.teamID.rawValue)
+ - Token expiry: \(token.expiry.formatted(.dateTime))
+ """)
} else {
print("Logged out")
}