@stokr/components-library 2.3.41-beta.1 → 2.3.41-beta.3

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.
@@ -88,22 +88,23 @@ var ResetPasswordModal = /*#__PURE__*/function (_PureComponent) {
88
88
  _context.prev = 4;
89
89
  query = new URLSearchParams(routeLocation.search);
90
90
  oobCode = query.get('oobCode');
91
+ console.log('oobCode from params: ', oobCode);
91
92
  if (oobCode) {
92
- _context.next = 10;
93
+ _context.next = 11;
93
94
  break;
94
95
  }
95
96
  this.setState({
96
97
  isTokenExpired: true,
97
98
  isCheckingToken: false,
98
99
  tokenError: {
99
- message: 'No activation code found in the URL'
100
+ message: 'The oobCode was not found in the URL!'
100
101
  }
101
102
  });
102
103
  return _context.abrupt("return");
103
- case 10:
104
- _context.next = 12;
104
+ case 11:
105
+ _context.next = 13;
105
106
  return this.context.checkActivationLinkExpired(oobCode);
106
- case 12:
107
+ case 13:
107
108
  result = _context.sent;
108
109
  console.log('Token check result:', result); // Debug log
109
110
 
@@ -112,10 +113,10 @@ var ResetPasswordModal = /*#__PURE__*/function (_PureComponent) {
112
113
  tokenError: result.error,
113
114
  isCheckingToken: false
114
115
  });
115
- _context.next = 21;
116
+ _context.next = 22;
116
117
  break;
117
- case 17:
118
- _context.prev = 17;
118
+ case 18:
119
+ _context.prev = 18;
119
120
  _context.t0 = _context["catch"](4);
120
121
  console.error('Error checking token expiration:', _context.t0);
121
122
  this.setState({
@@ -123,11 +124,11 @@ var ResetPasswordModal = /*#__PURE__*/function (_PureComponent) {
123
124
  tokenError: _context.t0,
124
125
  isCheckingToken: false
125
126
  });
126
- case 21:
127
+ case 22:
127
128
  case "end":
128
129
  return _context.stop();
129
130
  }
130
- }, _callee, this, [[4, 17]]);
131
+ }, _callee, this, [[4, 18]]);
131
132
  }));
132
133
  function checkTokenExpiration() {
133
134
  return _checkTokenExpiration.apply(this, arguments);
@@ -767,46 +767,35 @@ var AuthProviderClass = /*#__PURE__*/function (_Component) {
767
767
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
768
768
  while (1) switch (_context15.prev = _context15.next) {
769
769
  case 0:
770
- _context15.prev = 0;
771
- _context15.next = 3;
770
+ console.log('does this even run??');
771
+ _context15.prev = 1;
772
+ _context15.next = 4;
772
773
  return (0, _auth.checkActionCode)(_firebaseConfig.auth, actionCode);
773
- case 3:
774
+ case 4:
774
775
  actionCodeInfo = _context15.sent;
776
+ console.log('actionCodeInfo', actionCodeInfo);
775
777
  return _context15.abrupt("return", {
776
778
  expired: false,
777
779
  info: actionCodeInfo
778
780
  });
779
- case 7:
780
- _context15.prev = 7;
781
- _context15.t0 = _context15["catch"](0);
782
- console.log('🚀 ~ file: AuthContext.js ~ checkActivationLinkExpired error:', _context15.t0);
783
-
784
- // If the action code is expired or invalid, we'll get an error
785
- if (!(_context15.t0.code === 'auth/expired-action-code')) {
786
- _context15.next = 14;
781
+ case 9:
782
+ _context15.prev = 9;
783
+ _context15.t0 = _context15["catch"](1);
784
+ console.log('checkActivationLinkExpired error:', _context15.t0);
785
+ if (!(_context15.t0.code === 'auth/expired-action-code' || _context15.t0.code === 'auth/invalid-action-code')) {
786
+ _context15.next = 15;
787
787
  break;
788
788
  }
789
+ console.log('checkActivationLink error was either auth/expired-action-code or auth/invalid-action-code, setting token to EXPIRED! ');
789
790
  return _context15.abrupt("return", {
790
791
  expired: true,
791
792
  error: _context15.t0
792
793
  });
793
- case 14:
794
- if (!(_context15.t0.code === 'auth/invalid-action-code')) {
795
- _context15.next = 16;
796
- break;
797
- }
798
- return _context15.abrupt("return", {
799
- expired: false,
800
- // Not expired but invalid
801
- error: _context15.t0
802
- });
803
- case 16:
804
- throw _context15.t0;
805
- case 17:
794
+ case 15:
806
795
  case "end":
807
796
  return _context15.stop();
808
797
  }
809
- }, _callee15, null, [[0, 7]]);
798
+ }, _callee15, null, [[1, 9]]);
810
799
  }));
811
800
  return function (_x18) {
812
801
  return _ref15.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "2.3.41-beta.1",
3
+ "version": "2.3.41-beta.3",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",