@molecule/app-auth 3.2.4 → 3.2.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/README.md +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
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-
|
|
6
|
+
Generated: 2026-11-06T02:49:45.714Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-auth
|
|
@@ -151,8 +151,8 @@ whole parsed body is preserved, nested maps and arrays included, not just the
|
|
|
151
151
|
API's own validation payload (`{ errors: { credentials: ['is invalid'] } }`)
|
|
152
152
|
instead of re-implementing the call. A body that is not JSON arrives as `{}`;
|
|
153
153
|
the key, message, fallback and rejection are unchanged. That same rejection also
|
|
154
|
-
satisfies `isHttpError(err)` from `@molecule/app-http`, with
|
|
155
|
-
`response.data
|
|
154
|
+
satisfies `err instanceof HttpError` and `isHttpError(err)` from `@molecule/app-http`, with
|
|
155
|
+
`response.data` matching `body`, so an app-http error reader works without changing the
|
|
156
156
|
`I18nError` contract.
|
|
157
157
|
|
|
158
158
|
**`autoRefresh` does nothing without a refresh token.** The client schedules a refresh only when `refresh()` could actually
|
package/dist/index.d.ts
CHANGED
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
* API's own validation payload (`{ errors: { credentials: ['is invalid'] } }`)
|
|
142
142
|
* instead of re-implementing the call. A body that is not JSON arrives as `{}`;
|
|
143
143
|
* the key, message, fallback and rejection are unchanged. That same rejection also
|
|
144
|
-
* satisfies `isHttpError(err)` from `@molecule/app-http`, with
|
|
145
|
-
* `response.data
|
|
144
|
+
* satisfies `err instanceof HttpError` and `isHttpError(err)` from `@molecule/app-http`, with
|
|
145
|
+
* `response.data` matching `body`, so an app-http error reader works without changing the
|
|
146
146
|
* `I18nError` contract.
|
|
147
147
|
*
|
|
148
148
|
* **`autoRefresh` does nothing without a refresh token.** The client schedules a refresh only when `refresh()` could actually
|
package/dist/index.js
CHANGED
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
* API's own validation payload (`{ errors: { credentials: ['is invalid'] } }`)
|
|
142
142
|
* instead of re-implementing the call. A body that is not JSON arrives as `{}`;
|
|
143
143
|
* the key, message, fallback and rejection are unchanged. That same rejection also
|
|
144
|
-
* satisfies `isHttpError(err)` from `@molecule/app-http`, with
|
|
145
|
-
* `response.data
|
|
144
|
+
* satisfies `err instanceof HttpError` and `isHttpError(err)` from `@molecule/app-http`, with
|
|
145
|
+
* `response.data` matching `body`, so an app-http error reader works without changing the
|
|
146
146
|
* `I18nError` contract.
|
|
147
147
|
*
|
|
148
148
|
* **`autoRefresh` does nothing without a refresh token.** The client schedules a refresh only when `refresh()` could actually
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-auth",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "Client-side authentication interface for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@molecule/app-bond": "1.0.5",
|
|
38
|
-
"@molecule/app-http": "1.5.
|
|
38
|
+
"@molecule/app-http": "1.5.5",
|
|
39
39
|
"@molecule/app-i18n": "1.1.2",
|
|
40
40
|
"@molecule/app-logger": "1.0.5",
|
|
41
41
|
"@types/node": "26.6.5",
|