@ofidj/generator-fidj 1.0.9 → 1.0.10

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/lib/scaffold.cjs +6 -1
  2. package/package.json +1 -1
package/lib/scaffold.cjs CHANGED
@@ -135,7 +135,12 @@ function scaffold(destination, options) {
135
135
  : api.href.replace(/\/$/, "");
136
136
  const configuration = {
137
137
  appId: options.appId,
138
- oidcIssuer: options.oidcIssuer || null,
138
+ // A local build talks to the loopback API, so it must use that API's own
139
+ // provider: the client refuses an issuer on a different origin, and keeping
140
+ // the hosted one would send local sign-ins to production.
141
+ oidcIssuer: options.oidcIssuer
142
+ ? new URL("/oidc", localApi).href
143
+ : null,
139
144
  apiEndpoint: localApi,
140
145
  dashboardUrl: options.local ? "http://localhost:4200" : "https://fidj.ovh",
141
146
  title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofidj/generator-fidj",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
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": {