@molecule/app-http 1.5.5 → 1.5.6

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-06T02:49:46.331Z
6
+ Generated: 2026-11-06T22:35:11.084Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-http
@@ -1111,9 +1111,10 @@ Two mistakes that break in preview/production (seen in real imported apps):
1111
1111
  stay in YOUR API; the browser calls your API and the API uses the secret server-side.
1112
1112
  Only a publishable/public key may ever be client-side.
1113
1113
 
1114
- Auth (the bearer token / session cookie) is attached by the client's interceptors — do not
1115
- read a token from `localStorage` or hand-attach it (the token is memory-only; see the user
1116
- resource).
1114
+ Auth (the bearer token / session cookie) is attached by the bonded client's
1115
+ interceptors and token source. Keep persistence in `@molecule/app-auth`'s
1116
+ `AuthClientConfig.storage`; use the bonded client instead of reading storage
1117
+ or hand-attaching headers in each component.
1117
1118
  An API that wants another scheme than `Bearer` (`Authorization: Token <jwt>`) passes
1118
1119
  `authScheme: 'Token'` to the client's CONSTRUCTOR — `setClient(createFetchClient({ baseURL,
1119
1120
  authScheme: 'Token' }))`, or the bonded provider's constructor
package/dist/index.d.ts CHANGED
@@ -56,9 +56,10 @@
56
56
  * stay in YOUR API; the browser calls your API and the API uses the secret server-side.
57
57
  * Only a publishable/public key may ever be client-side.
58
58
  *
59
- * Auth (the bearer token / session cookie) is attached by the client's interceptors — do not
60
- * read a token from `localStorage` or hand-attach it (the token is memory-only; see the user
61
- * resource).
59
+ * Auth (the bearer token / session cookie) is attached by the bonded client's
60
+ * interceptors and token source. Keep persistence in `@molecule/app-auth`'s
61
+ * `AuthClientConfig.storage`; use the bonded client instead of reading storage
62
+ * or hand-attaching headers in each component.
62
63
  * An API that wants another scheme than `Bearer` (`Authorization: Token <jwt>`) passes
63
64
  * `authScheme: 'Token'` to the client's CONSTRUCTOR — `setClient(createFetchClient({ baseURL,
64
65
  * authScheme: 'Token' }))`, or the bonded provider's constructor
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuHG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwHG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -56,9 +56,10 @@
56
56
  * stay in YOUR API; the browser calls your API and the API uses the secret server-side.
57
57
  * Only a publishable/public key may ever be client-side.
58
58
  *
59
- * Auth (the bearer token / session cookie) is attached by the client's interceptors — do not
60
- * read a token from `localStorage` or hand-attach it (the token is memory-only; see the user
61
- * resource).
59
+ * Auth (the bearer token / session cookie) is attached by the bonded client's
60
+ * interceptors and token source. Keep persistence in `@molecule/app-auth`'s
61
+ * `AuthClientConfig.storage`; use the bonded client instead of reading storage
62
+ * or hand-attaching headers in each component.
62
63
  * An API that wants another scheme than `Bearer` (`Authorization: Token <jwt>`) passes
63
64
  * `authScheme: 'Token'` to the client's CONSTRUCTOR — `setClient(createFetchClient({ baseURL,
64
65
  * authScheme: 'Token' }))`, or the bonded provider's constructor
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuHG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwHG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-http",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "Client HTTP interface for molecule.dev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",