@placeos/ts-client 4.7.4 → 4.7.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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.7.4",
2
+ "version": "4.7.5",
3
3
  "license": "MIT",
4
4
  "name": "@placeos/ts-client",
5
5
  "author": "Alex Sorafumo <alex@place.tech>",
@@ -271,6 +271,10 @@ export function setup(options: PlaceAuthOptions): Promise<void> {
271
271
  return loadAuthority();
272
272
  }
273
273
 
274
+ export function setStorage(type: 'session' | 'local'): void {
275
+ _storage = type === 'session' ? sessionStorage : localStorage;
276
+ }
277
+
274
278
  /**
275
279
  * @private
276
280
  */
package/src/auth.ts CHANGED
@@ -23,6 +23,7 @@ export {
23
23
  refreshAuthority,
24
24
  refreshToken,
25
25
  setAPI_Key,
26
+ setStorage,
26
27
  setToken,
27
28
  setup,
28
29
  token,