@dxos/credentials 0.7.5-labs.f5080a1 → 0.7.5-labs.ff2ff30

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.
@@ -1747,7 +1747,7 @@ var DeviceStateMachine = class {
1747
1747
  const assertion = getCredentialAssertion(credential);
1748
1748
  switch (assertion["@type"]) {
1749
1749
  case "dxos.halo.credentials.AuthorizedDevice": {
1750
- this.authorizedDeviceKeys.set(assertion.deviceKey, {});
1750
+ this.authorizedDeviceKeys.set(assertion.deviceKey, this.authorizedDeviceKeys.get(assertion.deviceKey) ?? {});
1751
1751
  log4("added device", {
1752
1752
  localDeviceKey: this._params.deviceKey,
1753
1753
  deviceKey: assertion.deviceKey,