openhome-cli 0.1.0 → 0.1.2

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.
@@ -152,6 +152,14 @@ function saveApiKey(key) {
152
152
  saveConfig(config);
153
153
  }
154
154
  }
155
+ function getJwt() {
156
+ return getConfig().jwt ?? null;
157
+ }
158
+ function saveJwt(jwt) {
159
+ const config = getConfig();
160
+ config.jwt = jwt;
161
+ saveConfig(config);
162
+ }
155
163
 
156
164
  export {
157
165
  keychainDelete,
@@ -160,5 +168,7 @@ export {
160
168
  getApiKey,
161
169
  registerAbility,
162
170
  getTrackedAbilities,
163
- saveApiKey
171
+ saveApiKey,
172
+ getJwt,
173
+ saveJwt
164
174
  };