@molecule/app-react 3.4.2 → 3.4.3
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 +2 -2
- package/dist/hooks/useAuth.d.ts +1 -1
- package/dist/hooks/useAuth.js +1 -1
- package/package.json +1 -1
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-07T05:06:44.123Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-react
|
|
@@ -2075,7 +2075,7 @@ client's `AuthResult<MyUser>`; there is no separate `useRegister` hook.
|
|
|
2075
2075
|
An app whose API takes its OWN registration fields passes the client's
|
|
2076
2076
|
second generic here too — `useAuth<MyUser, { username: string }>()` — so
|
|
2077
2077
|
`register({ email, password, username })` is typed exactly like the client
|
|
2078
|
-
call (and `
|
|
2078
|
+
call (and `mapRequestBody` receives that payload as its first argument). Without it, `register`
|
|
2079
2079
|
accepts only the base fields.
|
|
2080
2080
|
|
|
2081
2081
|
```typescript
|
package/dist/hooks/useAuth.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare function useAuthClient<T = unknown, TRegister extends RegisterExt
|
|
|
42
42
|
* An app whose API takes its OWN registration fields passes the client's
|
|
43
43
|
* second generic here too — `useAuth<MyUser, { username: string }>()` — so
|
|
44
44
|
* `register({ email, password, username })` is typed exactly like the client
|
|
45
|
-
* call (and `
|
|
45
|
+
* call (and `mapRequestBody` receives that payload as its first argument). Without it, `register`
|
|
46
46
|
* accepts only the base fields.
|
|
47
47
|
*
|
|
48
48
|
* @param options - Hook options
|
package/dist/hooks/useAuth.js
CHANGED
|
@@ -51,7 +51,7 @@ export function useAuthClient() {
|
|
|
51
51
|
* An app whose API takes its OWN registration fields passes the client's
|
|
52
52
|
* second generic here too — `useAuth<MyUser, { username: string }>()` — so
|
|
53
53
|
* `register({ email, password, username })` is typed exactly like the client
|
|
54
|
-
* call (and `
|
|
54
|
+
* call (and `mapRequestBody` receives that payload as its first argument). Without it, `register`
|
|
55
55
|
* accepts only the base fields.
|
|
56
56
|
*
|
|
57
57
|
* @param options - Hook options
|