@molecule/app-react-native 3.0.6 → 3.0.7

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.
Files changed (2) hide show
  1. package/README.md +7 -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-08T06:24:49.442Z
6
+ Generated: 2026-11-09T15:44:47.787Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-react-native
@@ -156,7 +156,7 @@ interface AuthClient<
156
156
  /** Registers a new user. */
157
157
  register(data: RegisterData<TRegister>): Promise<AuthResult<T>>
158
158
 
159
- /** Refreshes the access token. */
159
+ /** Exchanges a stored refresh token, or re-reads `currentUserEndpoint` with the existing access token/session cookie when the API has no refresh credential. */
160
160
  refresh(): Promise<AuthResult<T>>
161
161
 
162
162
  /** Requests a password reset. */
@@ -1558,6 +1558,8 @@ interface UseAuthResult<
1558
1558
  logout: AuthClient<T>['logout']
1559
1559
  register: AuthClient<T, TRegister>['register']
1560
1560
  refresh: AuthClient<T>['refresh']
1561
+ /** Save through the configured auth transport and persist/publish its canonical profile. */
1562
+ updateProfile: AuthClient<T>['updateProfile']
1561
1563
  setUser: AuthClient<T>['setUser']
1562
1564
  /**
1563
1565
  * Adopt a session an exchange outside the client already established (an
@@ -2116,6 +2118,9 @@ Pass the app's user type — the SAME type used for the auth client and its
2116
2118
  config (`createJWTAuthClient<MyUser>`, `AuthClientConfig<MyUser>`) — so
2117
2119
  `user` and `setSession`/`setUser` are typed for the pages:
2118
2120
  `useAuth<MyUser>()`.
2121
+ Save profile edits with `updateProfile(patch)`: it uses the configured auth
2122
+ transport and publishes the saved user to every subscriber before resolving.
2123
+ An app-owned mutation instead passes its canonical response to `setUser`.
2119
2124
 
2120
2125
  For a sign-in the app runs itself (an OAuth redirect, a custom endpoint that
2121
2126
  already issued the token), call `setSession({ accessToken, user })`: it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-react-native",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "React Native framework bindings for molecule.dev",
5
5
  "homepage": "https://www.molecule.dev/packages/app-react-native",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "directory": "packages/app/frameworks/react-native"
34
34
  },
35
35
  "devDependencies": {
36
- "@molecule/app-react": "3.4.4",
36
+ "@molecule/app-react": "3.5.0",
37
37
  "@types/node": "26.6.5",
38
38
  "react": "19.3.1",
39
39
  "typescript": "6.0.3",