@frontegg/redux-store 6.170.0 → 6.172.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.
package/index.js
CHANGED
package/node/index.js
CHANGED
|
@@ -34,6 +34,10 @@ class FronteggNativeModule {
|
|
|
34
34
|
throw new Error('FronteggNativeBridge is not available');
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
+
this.promptSocialLoginConsent = () => {
|
|
38
|
+
var _window$FronteggNativ3, _window$FronteggNativ4;
|
|
39
|
+
return (_window$FronteggNativ3 = (_window$FronteggNativ4 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ4['shouldPromptSocialLoginConsent']) != null ? _window$FronteggNativ3 : false;
|
|
40
|
+
};
|
|
37
41
|
}
|
|
38
42
|
isWebkitAvailable() {
|
|
39
43
|
var _window$webkit3, _window$webkit3$messa;
|
|
@@ -44,8 +48,8 @@ class FronteggNativeModule {
|
|
|
44
48
|
}
|
|
45
49
|
isAvailable(method) {
|
|
46
50
|
if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
|
|
47
|
-
var _window$
|
|
48
|
-
return (_window$
|
|
51
|
+
var _window$FronteggNativ5, _window$FronteggNativ6;
|
|
52
|
+
return (_window$FronteggNativ5 = (_window$FronteggNativ6 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ6[method]) != null ? _window$FronteggNativ5 : false;
|
|
49
53
|
}
|
|
50
54
|
return false;
|
|
51
55
|
}
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ declare class FronteggNativeModule {
|
|
|
21
21
|
isAvailable(method: string): boolean;
|
|
22
22
|
loginWithSSO: (email: string) => void;
|
|
23
23
|
loginWithSocialLogin: (url: string) => void;
|
|
24
|
+
promptSocialLoginConsent: () => boolean;
|
|
24
25
|
}
|
|
25
26
|
declare const _default: FronteggNativeModule;
|
|
26
27
|
export default _default;
|
|
@@ -28,6 +28,10 @@ class FronteggNativeModule {
|
|
|
28
28
|
throw new Error('FronteggNativeBridge is not available');
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
+
this.promptSocialLoginConsent = () => {
|
|
32
|
+
var _window$FronteggNativ3, _window$FronteggNativ4;
|
|
33
|
+
return (_window$FronteggNativ3 = (_window$FronteggNativ4 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ4['shouldPromptSocialLoginConsent']) != null ? _window$FronteggNativ3 : false;
|
|
34
|
+
};
|
|
31
35
|
}
|
|
32
36
|
isWebkitAvailable() {
|
|
33
37
|
var _window$webkit3, _window$webkit3$messa;
|
|
@@ -38,8 +42,8 @@ class FronteggNativeModule {
|
|
|
38
42
|
}
|
|
39
43
|
isAvailable(method) {
|
|
40
44
|
if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
|
|
41
|
-
var _window$
|
|
42
|
-
return (_window$
|
|
45
|
+
var _window$FronteggNativ5, _window$FronteggNativ6;
|
|
46
|
+
return (_window$FronteggNativ5 = (_window$FronteggNativ6 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ6[method]) != null ? _window$FronteggNativ5 : false;
|
|
43
47
|
}
|
|
44
48
|
return false;
|
|
45
49
|
}
|