@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/dist/auth/functions.d.ts +1 -0
- package/dist/auth.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +579 -575
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/auth/functions.ts +4 -0
- package/src/auth.ts +1 -0
package/package.json
CHANGED
package/src/auth/functions.ts
CHANGED
|
@@ -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
|
*/
|