@frontegg/redux-store 5.18.3 → 5.19.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/auth/index.js CHANGED
@@ -2123,8 +2123,10 @@ function* activateAccount(_a) {
2123
2123
  return;
2124
2124
  }
2125
2125
  if (isMfaRequired(data)) {
2126
+ yield put(actions.setActivateState({ step: ActivateAccountStep.success }));
2126
2127
  const mfaRequiredState = yield getMfaRequiredState(data);
2127
2128
  yield put(actions.setState(mfaRequiredState));
2129
+ yield delay$1(1000);
2128
2130
  onRedirectTo(routes.loginUrl, { preserveQueryParams: true });
2129
2131
  }
2130
2132
  else {
@@ -2125,8 +2125,10 @@ function* activateAccount(_a) {
2125
2125
  return;
2126
2126
  }
2127
2127
  if (isMfaRequired(data)) {
2128
+ yield effects.put(actions.setActivateState({ step: exports.ActivateAccountStep.success }));
2128
2129
  const mfaRequiredState = yield getMfaRequiredState(data);
2129
2130
  yield effects.put(actions.setState(mfaRequiredState));
2131
+ yield effects.delay(1000);
2130
2132
  onRedirectTo(routes.loginUrl, { preserveQueryParams: true });
2131
2133
  }
2132
2134
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
3
  "libName": "FronteggReduxStore",
4
- "version": "5.18.3",
4
+ "version": "5.19.0",
5
5
  "author": "Frontegg LTD",
6
6
  "main": "./node/index.js",
7
7
  "module": "./index.js",