@molecule/app-auth 3.2.1 → 3.2.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-02T07:28:20.788Z
6
+ Generated: 2026-11-02T21:26:16.657Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-auth
@@ -55,6 +55,13 @@ createBrowserStorageAdapter() }))`, or `createDefaultAuthClient(authConfig)`
55
55
  from `@molecule/app-bonds-default-react`, then call `initialize()`. The bond's
56
56
  HTTP-sync variants also register `whenRestored()` as the request gate.
57
57
 
58
+ Sharing `tokenKey` with the bonded client does not make another context or
59
+ provider an adapter. A context with copied `user` and `status`, local token
60
+ helpers, or a separate restore effect is still a second session store, even
61
+ when it uses the same storage key. Keep view adapters and debug bridges beside
62
+ the bond, but have them read the bonded client or framework binding instead of
63
+ mirroring session state.
64
+
58
65
  **`initialize()` restores a cached token AND user BEFORE the first render.**
59
66
  That restore is synchronous and costs no request. Cookie-only and token-only
60
67
  restoration need an asynchronous current-user request. An HttpOnly
package/dist/index.d.ts CHANGED
@@ -45,6 +45,13 @@
45
45
  * from `@molecule/app-bonds-default-react`, then call `initialize()`. The bond's
46
46
  * HTTP-sync variants also register `whenRestored()` as the request gate.
47
47
  *
48
+ * Sharing `tokenKey` with the bonded client does not make another context or
49
+ * provider an adapter. A context with copied `user` and `status`, local token
50
+ * helpers, or a separate restore effect is still a second session store, even
51
+ * when it uses the same storage key. Keep view adapters and debug bridges beside
52
+ * the bond, but have them read the bonded client or framework binding instead of
53
+ * mirroring session state.
54
+ *
48
55
  * **`initialize()` restores a cached token AND user BEFORE the first render.**
49
56
  * That restore is synchronous and costs no request. Cookie-only and token-only
50
57
  * restoration need an asynchronous current-user request. An HttpOnly
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmcG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0cG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -45,6 +45,13 @@
45
45
  * from `@molecule/app-bonds-default-react`, then call `initialize()`. The bond's
46
46
  * HTTP-sync variants also register `whenRestored()` as the request gate.
47
47
  *
48
+ * Sharing `tokenKey` with the bonded client does not make another context or
49
+ * provider an adapter. A context with copied `user` and `status`, local token
50
+ * helpers, or a separate restore effect is still a second session store, even
51
+ * when it uses the same storage key. Keep view adapters and debug bridges beside
52
+ * the bond, but have them read the bonded client or framework binding instead of
53
+ * mirroring session state.
54
+ *
48
55
  * **`initialize()` restores a cached token AND user BEFORE the first render.**
49
56
  * That restore is synchronous and costs no request. Cookie-only and token-only
50
57
  * restoration need an asynchronous current-user request. An HttpOnly
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
2
  "name": "@molecule/app-auth",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Client-side authentication interface for molecule.dev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",