@tinycloud/cli 1.2.2-beta.4 → 1.2.2-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23931,11 +23931,13 @@ function registerDoctorCommand(program) {
23931
23931
  if (profileOk && profileName2) {
23932
23932
  try {
23933
23933
  const session = await ProfileManager.getSession(profileName2);
23934
- const { state: state2, expiresAt } = storedSessionState(session);
23934
+ const profile = await ProfileManager.getProfile(profileName2);
23935
+ const { state: state2, expiresAt } = storedSessionState(session, profile);
23935
23936
  sessionOk = sessionStateIsUsable(state2);
23936
23937
  if (state2 === "expired") {
23937
- const posture = resolveProfilePosture(await ProfileManager.getProfile(profileName2));
23938
- sessionDetail = `expired ${expiresAt} \u2014 ${signInAgainHint(profileName2, posture)}`;
23938
+ sessionDetail = `expired ${expiresAt} \u2014 ${signInAgainHint(profileName2, resolveProfilePosture(profile))}`;
23939
+ } else if (state2 === "unverified") {
23940
+ sessionDetail = `not usable (no signed OpenKey proof) \u2014 ${signInAgainHint(profileName2, resolveProfilePosture(profile))}`;
23939
23941
  } else {
23940
23942
  sessionDetail = sessionOk ? "active" : "no session \u2014 run tc auth login";
23941
23943
  }