@frontegg/redux-store 7.14.0 → 7.15.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.
@@ -31,5 +31,6 @@ export const defaultFronteggRoutes = {
31
31
  magicLinkCallbackUrl: '/account/login/magic-link',
32
32
  hostedLoginRedirectUrl: '/oauth/callback',
33
33
  openAppUrl: '/account/redirect',
34
- unlockAccountUrl: '/account/unlock'
34
+ unlockAccountUrl: '/account/unlock',
35
+ mfaMobileAuthenticator: '/account/mfa-mobile-authenticator'
35
36
  };
@@ -201,6 +201,12 @@ export type AuthPageRoutes = {
201
201
  * unlock account url
202
202
  */
203
203
  unlockAccountUrl?: string;
204
+ /**
205
+ * Multi-Factor authenticator for mobile
206
+ * Private router used for direct access to the two-factor authenticator for mobile
207
+ * @default: '/account/mfa-mobile-authenticator'
208
+ */
209
+ mfaMobileAuthenticator?: string;
204
210
  };
205
211
  export declare enum UserVeirifedOriginTypes {
206
212
  SOCIAL_LOGIN = "SOCIAL_LOGIN",
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.14.0
1
+ /** @license Frontegg v7.15.0
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.
@@ -39,6 +39,7 @@ const defaultFronteggRoutes = {
39
39
  magicLinkCallbackUrl: '/account/login/magic-link',
40
40
  hostedLoginRedirectUrl: '/oauth/callback',
41
41
  openAppUrl: '/account/redirect',
42
- unlockAccountUrl: '/account/unlock'
42
+ unlockAccountUrl: '/account/unlock',
43
+ mfaMobileAuthenticator: '/account/mfa-mobile-authenticator'
43
44
  };
44
45
  exports.defaultFronteggRoutes = defaultFronteggRoutes;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.14.0
1
+ /** @license Frontegg v7.15.0
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.
@@ -130,7 +130,7 @@ const createStore = options => {
130
130
  auditLogs: auditsState,
131
131
  audits: oldAuditsState
132
132
  });
133
- if (typeof window !== 'undefined' && (localStorage['DEBUG_FRONTEGG_STORE'] === 'true' || process.env.NODE_ENV === 'development')) {
133
+ if (typeof window !== 'undefined' && window.localStorage && (window.localStorage['DEBUG_FRONTEGG_STORE'] === 'true' || process.env.NODE_ENV === 'development')) {
134
134
  (0, _valtio.devtools)(store, {
135
135
  name: `${appName} Store`,
136
136
  enabled: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.14.0",
3
+ "version": "7.15.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
package/toolkit/store.js CHANGED
@@ -96,7 +96,7 @@ export const createStore = options => {
96
96
  auditLogs: auditsState,
97
97
  audits: oldAuditsState
98
98
  });
99
- if (typeof window !== 'undefined' && (localStorage['DEBUG_FRONTEGG_STORE'] === 'true' || process.env.NODE_ENV === 'development')) {
99
+ if (typeof window !== 'undefined' && window.localStorage && (window.localStorage['DEBUG_FRONTEGG_STORE'] === 'true' || process.env.NODE_ENV === 'development')) {
100
100
  devtools(store, {
101
101
  name: `${appName} Store`,
102
102
  enabled: true