@medplum/core 5.1.15 → 5.1.16

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.
@@ -5055,6 +5055,17 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
5055
5055
  getLogins(): LoginState[];
5056
5056
  private addLogin;
5057
5057
  private refreshProfile;
5058
+ /**
5059
+ * Updates the persisted login state for the active login with the live project name.
5060
+ *
5061
+ * The `display` on a stored {@link LoginState} is a snapshot captured at login time, so it goes
5062
+ * stale if the project is later renamed. After `auth/me` resolves we have the current `Project`
5063
+ * resource, so we write its name back into both the active login and the logins list. Because the
5064
+ * active token is scoped to a single project, this is the only project whose name we can refresh;
5065
+ * each login's display therefore self-heals the next time that login is used (e.g. the account
5066
+ * switcher in HeaderDropdown).
5067
+ */
5068
+ private syncStoredLoginProject;
5058
5069
  /**
5059
5070
  * Returns true if the client is waiting for initial authentication.
5060
5071
  * @returns True if the client is waiting for initial authentication.
@@ -5055,6 +5055,17 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
5055
5055
  getLogins(): LoginState[];
5056
5056
  private addLogin;
5057
5057
  private refreshProfile;
5058
+ /**
5059
+ * Updates the persisted login state for the active login with the live project name.
5060
+ *
5061
+ * The `display` on a stored {@link LoginState} is a snapshot captured at login time, so it goes
5062
+ * stale if the project is later renamed. After `auth/me` resolves we have the current `Project`
5063
+ * resource, so we write its name back into both the active login and the logins list. Because the
5064
+ * active token is scoped to a single project, this is the only project whose name we can refresh;
5065
+ * each login's display therefore self-heals the next time that login is used (e.g. the account
5066
+ * switcher in HeaderDropdown).
5067
+ */
5068
+ private syncStoredLoginProject;
5058
5069
  /**
5059
5070
  * Returns true if the client is waiting for initial authentication.
5060
5071
  * @returns True if the client is waiting for initial authentication.