flashauthbyjagwar 3.6.0 → 3.6.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthPopupManager.d.ts","sourceRoot":"","sources":["../../src/providers/OAuthPopupManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAI,MAAM,kCAAkC,CAAC;AAExE,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,kBAAkB;IAEhE,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IAS/E,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"OAuthPopupManager.d.ts","sourceRoot":"","sources":["../../src/providers/OAuthPopupManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAI,MAAM,kCAAkC,CAAC;AAExE,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,kBAAkB;IAEhE,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IAS/E,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CA2C9E"}
|
|
@@ -17,10 +17,10 @@ class OAuthPopupManager {
|
|
|
17
17
|
if (event.origin !== serverURL.replace(/\/$/, ""))
|
|
18
18
|
return;
|
|
19
19
|
const data = event.data;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
console.log("Event Origin: ", event.origin);
|
|
21
|
+
console.log("Event Data: ", event.data);
|
|
22
|
+
console.log("DATA TYPE: ", data.type);
|
|
23
|
+
console.log("DATA TOKEN", data.token);
|
|
24
24
|
if (data.type === "FLASHAUTH_TOKEN" && data.token) {
|
|
25
25
|
cleanup();
|
|
26
26
|
resolve(data.token);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flashauthbyjagwar",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "An authentication SDK for your React site. No need to write auth logic — just create an account at flashauth.connectjagwar.com to get started.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|