@tinycloud/web-sdk 3.11.0 → 3.11.1-beta.0

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.
@@ -21,6 +21,14 @@ export declare class BrowserSessionStorage implements ISessionStorage {
21
21
  private defaultStorage;
22
22
  private key;
23
23
  private activeAddressKey;
24
+ private fenceKey;
25
+ /**
26
+ * Fences the session with `signature` stored for `address`, for when removing its record fails: a restore
27
+ * checks {@link isSignedOut} and refuses it. A successful `clear` lifts the fence, and so does saving a
28
+ * different session.
29
+ */
30
+ markSignedOut(address: string, signature: string): void;
31
+ isSignedOut(address: string, signature: string): boolean;
24
32
  private clearActiveAddress;
25
33
  private assertPersistable;
26
34
  save(address: string, data: PersistedSessionData): Promise<void>;