@bigso/auth-sdk 0.4.4 → 0.4.5
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/dist/index.cjs +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -355,12 +355,13 @@ var BigsoAuth = class extends EventEmitter {
|
|
|
355
355
|
}
|
|
356
356
|
// ─── Helpers ──────────────────────────────────────────────────────
|
|
357
357
|
buildFallbackUrl() {
|
|
358
|
-
const url = new URL(
|
|
359
|
-
url.searchParams.set("
|
|
360
|
-
url.searchParams.set("response_type", "code");
|
|
358
|
+
const url = new URL(this.options.ssoOrigin);
|
|
359
|
+
url.searchParams.set("app_id", this.options.clientId);
|
|
361
360
|
url.searchParams.set("redirect_uri", this.options.redirectUri || window.location.origin);
|
|
361
|
+
url.searchParams.set("response_type", "code");
|
|
362
362
|
url.searchParams.set("state", generateRandomId());
|
|
363
363
|
url.searchParams.set("code_challenge_method", "S256");
|
|
364
|
+
url.searchParams.set("client_id", this.options.clientId);
|
|
364
365
|
return url.toString();
|
|
365
366
|
}
|
|
366
367
|
debug(...args) {
|
package/dist/index.js
CHANGED
|
@@ -329,12 +329,13 @@ var BigsoAuth = class extends EventEmitter {
|
|
|
329
329
|
}
|
|
330
330
|
// ─── Helpers ──────────────────────────────────────────────────────
|
|
331
331
|
buildFallbackUrl() {
|
|
332
|
-
const url = new URL(
|
|
333
|
-
url.searchParams.set("
|
|
334
|
-
url.searchParams.set("response_type", "code");
|
|
332
|
+
const url = new URL(this.options.ssoOrigin);
|
|
333
|
+
url.searchParams.set("app_id", this.options.clientId);
|
|
335
334
|
url.searchParams.set("redirect_uri", this.options.redirectUri || window.location.origin);
|
|
335
|
+
url.searchParams.set("response_type", "code");
|
|
336
336
|
url.searchParams.set("state", generateRandomId());
|
|
337
337
|
url.searchParams.set("code_challenge_method", "S256");
|
|
338
|
+
url.searchParams.set("client_id", this.options.clientId);
|
|
338
339
|
return url.toString();
|
|
339
340
|
}
|
|
340
341
|
debug(...args) {
|