@frontegg/redux-store 6.183.0-alpha.0 → 6.183.0-alpha.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.
- package/auth/LoginState/saga.js +1 -1
- package/index.js +1 -1
- package/node/auth/LoginState/saga.js +1 -1
- package/node/index.js +1 -1
- package/node/toolkit/FronteggNativeModule.js +6 -0
- package/package.json +1 -1
- package/toolkit/FronteggNativeModule.d.ts +2 -0
- package/toolkit/FronteggNativeModule.js +6 -0
package/auth/LoginState/saga.js
CHANGED
|
@@ -914,7 +914,7 @@ function* preLogin({
|
|
|
914
914
|
}));
|
|
915
915
|
ssoRedirectUrl += `&redirect_uri=${window.location.origin}${oidcRedirectUrl}`;
|
|
916
916
|
}
|
|
917
|
-
if (FronteggNativeModule.
|
|
917
|
+
if (FronteggNativeModule.isLoginWithSSOAvailable()) {
|
|
918
918
|
FronteggNativeModule.loginWithSSO(email);
|
|
919
919
|
yield put(actions.setLoginState({
|
|
920
920
|
loading: false
|
package/index.js
CHANGED
|
@@ -940,7 +940,7 @@ function* preLogin({
|
|
|
940
940
|
}));
|
|
941
941
|
ssoRedirectUrl += `&redirect_uri=${window.location.origin}${oidcRedirectUrl}`;
|
|
942
942
|
}
|
|
943
|
-
if (_toolkit.FronteggNativeModule.
|
|
943
|
+
if (_toolkit.FronteggNativeModule.isLoginWithSSOAvailable()) {
|
|
944
944
|
_toolkit.FronteggNativeModule.loginWithSSO(email);
|
|
945
945
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
946
946
|
loading: false
|
package/node/index.js
CHANGED
|
@@ -46,6 +46,12 @@ class FronteggNativeModule {
|
|
|
46
46
|
isJsInterfaceAvailable() {
|
|
47
47
|
return window.FronteggNativeBridge != null;
|
|
48
48
|
}
|
|
49
|
+
isSocialLoginAvailable() {
|
|
50
|
+
return this.isAvailable('loginWithSocialLogin');
|
|
51
|
+
}
|
|
52
|
+
isLoginWithSSOAvailable() {
|
|
53
|
+
return this.isAvailable('loginWithSSO');
|
|
54
|
+
}
|
|
49
55
|
isAvailable(method) {
|
|
50
56
|
if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
|
|
51
57
|
var _window$FronteggNativ5, _window$FronteggNativ6;
|
package/package.json
CHANGED
|
@@ -18,6 +18,8 @@ declare global {
|
|
|
18
18
|
declare class FronteggNativeModule {
|
|
19
19
|
private isWebkitAvailable;
|
|
20
20
|
private isJsInterfaceAvailable;
|
|
21
|
+
isSocialLoginAvailable(): boolean;
|
|
22
|
+
isLoginWithSSOAvailable(): boolean;
|
|
21
23
|
isAvailable(method: string): boolean;
|
|
22
24
|
loginWithSSO: (email: string) => void;
|
|
23
25
|
loginWithSocialLogin: (url: string) => void;
|
|
@@ -40,6 +40,12 @@ class FronteggNativeModule {
|
|
|
40
40
|
isJsInterfaceAvailable() {
|
|
41
41
|
return window.FronteggNativeBridge != null;
|
|
42
42
|
}
|
|
43
|
+
isSocialLoginAvailable() {
|
|
44
|
+
return this.isAvailable('loginWithSocialLogin');
|
|
45
|
+
}
|
|
46
|
+
isLoginWithSSOAvailable() {
|
|
47
|
+
return this.isAvailable('loginWithSSO');
|
|
48
|
+
}
|
|
43
49
|
isAvailable(method) {
|
|
44
50
|
if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
|
|
45
51
|
var _window$FronteggNativ5, _window$FronteggNativ6;
|