@fluoce/auth-react 1.2.1 → 1.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 +10 -10
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -141,16 +141,16 @@ interface FluoceAuthContextType {
|
|
|
141
141
|
}
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
| Property / Method | Returns
|
|
145
|
-
| -------------------------------- |
|
|
146
|
-
| `user` | `FluoceUserType
|
|
147
|
-
| `safe_loading` | `boolean`
|
|
148
|
-
| `auth_flow_loading` | `boolean`
|
|
149
|
-
| `logout()` | `Promise<boolean>`
|
|
150
|
-
| `refresh()` | `Promise<boolean>`
|
|
151
|
-
| `auth_flow({ code })` | `Promise<boolean>`
|
|
152
|
-
| `get_safe_user()` | `Promise<FluoceUserType
|
|
153
|
-
| `access_token` / `refresh_token` | `string
|
|
144
|
+
| Property / Method | Returns | Description |
|
|
145
|
+
| -------------------------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
146
|
+
| `user` | `FluoceUserType \| null` | Read-only object containing active profile values, or `null` if unauthenticated. |
|
|
147
|
+
| `safe_loading` | `boolean` | `true` exclusively during standard initialization boots. Block layouts using this to eliminate rendering flashes. |
|
|
148
|
+
| `auth_flow_loading` | `boolean` | `true` while the system actively exchanges the code query param for production keys. |
|
|
149
|
+
| `logout()` | `Promise<boolean>` | Destroys token signatures, invalidates memory blocks, and signs out users. |
|
|
150
|
+
| `refresh()` | `Promise<boolean>` | Forces the runtime engine to prompt refresh sequences against token services. |
|
|
151
|
+
| `auth_flow({ code })` | `Promise<boolean>` | Exchanges the code for production session, usually internal use only. |
|
|
152
|
+
| `get_safe_user()` | `Promise<FluoceUserType \| null>` | Re-fetch safely the active user, returns user or null. |
|
|
153
|
+
| `access_token` / `refresh_token` | `string \| null` | Raw context variables exposed if tokens are required inside distinct back-end network headers. |
|
|
154
154
|
|
|
155
155
|
---
|
|
156
156
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluoce/auth-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "React SDK for Fluoce Auth",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"sideEffects": false,
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
27
|
+
"dev": "tsup src/index.ts --watch --format esm,cjs --dts",
|
|
28
|
+
"prepublishOnly": "pnpm build"
|
|
29
|
+
},
|
|
25
30
|
"peerDependencies": {
|
|
26
31
|
"react": ">=18",
|
|
27
32
|
"react-dom": ">=18"
|
|
@@ -49,9 +54,5 @@
|
|
|
49
54
|
],
|
|
50
55
|
"engines": {
|
|
51
56
|
"node": ">=18"
|
|
52
|
-
},
|
|
53
|
-
"scripts": {
|
|
54
|
-
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
55
|
-
"dev": "tsup src/index.ts --watch --format esm,cjs --dts"
|
|
56
57
|
}
|
|
57
|
-
}
|
|
58
|
+
}
|