@tinycloud/web-sdk 3.12.0-beta.15 → 3.12.0-beta.17

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/README.md CHANGED
@@ -58,12 +58,20 @@ expiry. The permission check does not contact the node, so a session the node
58
58
  rejects (a 401 after a revocation or a reset, for example) is still restored.
59
59
  With OpenKey, `prepareSignIn()` makes the same check.
60
60
 
61
- Restoring a session makes one node read, capped at 5 seconds, to learn whether
62
- the session's primary space is hosted. It never prompts and never fails the
63
- restore. Read the answer from `tc.spaceHosting` (`"hosted"`, `"not-hosted"` or
64
- `"unknown"`). At sign-in the answer comes from the node's activation of the new
65
- session. `signIn()` on a restored session whose space is `"not-hosted"` returns
66
- the restored session.
61
+ `restoreSession()` resolves from stored state. It automatically starts a
62
+ background hosting probe, capped at 5 seconds, and reactivates stored panel
63
+ grants. Read `tc.spaceHosting` (`"hosted"`, `"not-hosted"` or `"unknown"`) for
64
+ the current display hint. A stored hint applies only to the same account,
65
+ space and host. It can be one session stale until the probe corrects it at
66
+ runtime, and updates in storage when the signed session is next persisted.
67
+ Older records start at `"unknown"`. The hint never grants authority or skips
68
+ permission checks. The probe never prompts or fails the restore.
69
+ Panel permission requests wait up to 4 seconds for stored grants to reactivate
70
+ before showing a permission prompt.
71
+ `signIn()` waits for the probe when it restores a session. At fresh sign-in
72
+ the hosting answer comes from the node's activation of the new session.
73
+ `signIn()` on a restored session whose space is `"not-hosted"` returns the
74
+ restored session.
67
75
 
68
76
  To force a fresh consent, sign out first. `signOut()` clears the stored session
69
77
  and blocks restoring until the next sign-in succeeds, so `signIn()` prompts:
@@ -77,6 +85,8 @@ There is no separate "fresh sign-in" option. Calling `restoreSession()` yourself
77
85
  restores a stored session without the manifest check.
78
86
 
79
87
  Sign-out reports session-storage failures. Replica cleanup has its own recovery markers; sign-out completion alone does not certify local-copy erase. Custom/native session adapters keep their existing storage contract, including the provider's durability and boot-handling responsibilities.
88
+ With an asynchronous custom runtime-grant store, sign-out waits for in-flight
89
+ load/save calls to settle.
80
90
 
81
91
  ### Runtime permission grants with OpenKey
82
92
 
@@ -548,4 +558,4 @@ If you encounter any issues or have questions, please file an issue on our [GitH
548
558
  Join the TinyCloud community:
549
559
 
550
560
  - [Twitter](https://twitter.com/TinyCloudLabs)
551
- - [Telegram](https://t.me/+pplkv1XbbU01MDVh)
561
+ - [Telegram](https://t.me/+pplkv1XbbU01MDVh)