@ofidj/generator-fidj 1.7.3 → 1.8.0

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.
@@ -15,7 +15,7 @@
15
15
  "privacy:rehearse": "npm run build && node --test test/server.test.mjs"
16
16
  },
17
17
  "dependencies": {
18
- "@ofidj/node": "^3.6.26"
18
+ "@ofidj/node": "^3.6.30"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.0.0",
@@ -437,7 +437,14 @@ function render() {
437
437
  askedProvider = true;
438
438
  void (async () => {
439
439
  if (!(await providerRendersHere())) return;
440
- window.location.assign(await oidc.beginLogin());
440
+ // Being recognised again is the one thing somebody who just signed out did
441
+ // not ask for, and this shortcut is what made a sign-out undoable by a page
442
+ // reload. Ending the provider session is what should make that impossible,
443
+ // and that call can be refused — so here the screen asks rather than
444
+ // assumes, until somebody signs in again.
445
+ window.location.assign(
446
+ await oidc.beginLogin(oidc.signedOutHere() ? { prompt: "login" } : {}),
447
+ );
441
448
  })();
442
449
  }
443
450
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofidj/generator-fidj",
3
- "version": "1.7.3",
3
+ "version": "1.8.0",
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": {