@passflow/core 0.39.3 → 0.39.4
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 +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6644,7 +6644,7 @@ export declare class Passflow {
|
|
|
6644
6644
|
/**
|
|
6645
6645
|
* Adopts a `#tfa_token=` fragment: the 2FA token goes to the TwoFactorService
|
|
6646
6646
|
* through `TwoFactorRequired`, exactly as a password sign-in's does, and the
|
|
6647
|
-
*
|
|
6647
|
+
* token and `user_state` leave the URL. Nothing is saved as a session.
|
|
6648
6648
|
*
|
|
6649
6649
|
* @returns true when the URL carried a 2FA token
|
|
6650
6650
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -6644,7 +6644,7 @@ export declare class Passflow {
|
|
|
6644
6644
|
/**
|
|
6645
6645
|
* Adopts a `#tfa_token=` fragment: the 2FA token goes to the TwoFactorService
|
|
6646
6646
|
* through `TwoFactorRequired`, exactly as a password sign-in's does, and the
|
|
6647
|
-
*
|
|
6647
|
+
* token and `user_state` leave the URL. Nothing is saved as a session.
|
|
6648
6648
|
*
|
|
6649
6649
|
* @returns true when the URL carried a 2FA token
|
|
6650
6650
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var a = "__passflowAntiBot", o = (e, t) => {
|
|
|
11
11
|
if (typeof e != "object" || !e) return;
|
|
12
12
|
let t = e[a];
|
|
13
13
|
return typeof t == "object" && t ? t : void 0;
|
|
14
|
-
}, c = "0.39.
|
|
14
|
+
}, c = "0.39.4", l = "X-Passflow-Clientid", u = "Authorization", d = "X-Passflow-DeviceId", f = "X-Passflow-DeviceType", p = "X-Passflow-Anti-Bot", m = "X-Passflow-Agent-Tool", h = "passflow_auth", g = c, _ = [
|
|
15
15
|
"id",
|
|
16
16
|
"offline",
|
|
17
17
|
"openid"
|
|
@@ -7528,8 +7528,10 @@ var Ea = 10, Da = "The sign-in answered with a PKCE code, but its verifier is go
|
|
|
7528
7528
|
let t = new URLSearchParams(e.hash.substring(1)), n = t.get("tfa_token");
|
|
7529
7529
|
if (!n) return !1;
|
|
7530
7530
|
t.delete("tfa_token");
|
|
7531
|
-
let r = t.toString();
|
|
7532
|
-
|
|
7531
|
+
let r = t.toString(), i = new URLSearchParams(e.search);
|
|
7532
|
+
i.delete("user_state");
|
|
7533
|
+
let a = i.toString();
|
|
7534
|
+
return this.platform.replaceUrl(e.pathname + (a ? `?${a}` : "") + (r ? `#${r}` : "")), la(n) ? (this.subscribeStore.notify(W.TwoFactorRequired, {
|
|
7533
7535
|
email: "",
|
|
7534
7536
|
challengeId: "",
|
|
7535
7537
|
tfaToken: n
|