@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.
@@ -914,7 +914,7 @@ function* preLogin({
914
914
  }));
915
915
  ssoRedirectUrl += `&redirect_uri=${window.location.origin}${oidcRedirectUrl}`;
916
916
  }
917
- if (FronteggNativeModule.isAvailable('loginWithSSO')) {
917
+ if (FronteggNativeModule.isLoginWithSSOAvailable()) {
918
918
  FronteggNativeModule.loginWithSSO(email);
919
919
  yield put(actions.setLoginState({
920
920
  loading: false
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.183.0-alpha.0
1
+ /** @license Frontegg v6.183.0-alpha.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -940,7 +940,7 @@ function* preLogin({
940
940
  }));
941
941
  ssoRedirectUrl += `&redirect_uri=${window.location.origin}${oidcRedirectUrl}`;
942
942
  }
943
- if (_toolkit.FronteggNativeModule.isAvailable('loginWithSSO')) {
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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.183.0-alpha.0
1
+ /** @license Frontegg v6.183.0-alpha.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.183.0-alpha.0",
3
+ "version": "6.183.0-alpha.1",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
@@ -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;