@ofidj/generator-fidj 3.18.0 → 3.18.1

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.
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@ofidj/entry": "^3.18.0",
19
- "@ofidj/node": "^3.18.0"
19
+ "@ofidj/node": "^3.18.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.0.0",
@@ -167,7 +167,10 @@ async function request(path: string, method = "GET", data?: unknown) {
167
167
  });
168
168
  const result = await response.json();
169
169
  if (!response.ok) {
170
- if ([401, 403].includes(response.status)) {
170
+ // Only a 401 means the session is gone; a 403 refuses one action to
171
+ // somebody still signed in, and signing them out for it ended the console's
172
+ // session on the first forbidden request.
173
+ if (response.status === 401) {
171
174
  signedIn = false;
172
175
  await sdk.logout(true);
173
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofidj/generator-fidj",
3
- "version": "3.18.0",
3
+ "version": "3.18.1",
4
4
  "description": "Generate a TypeScript app with Fidj sign-in, live server-side roles and per-app privacy.",
5
5
  "homepage": "https://fidj.ovh",
6
6
  "bugs": {