@burdenoff/microfe-auth 2026.1031.1 → 2026.1101.2

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.
Files changed (135) hide show
  1. package/dist/auth/AuthRoot.js +14 -11
  2. package/dist/auth/AuthRoot.js.map +1 -1
  3. package/dist/auth/AuthRoutes.js +1 -2
  4. package/dist/auth/AuthRoutes.js.map +1 -1
  5. package/dist/auth/components/AuthIcons.js +1 -2
  6. package/dist/auth/components/AuthIcons.js.map +1 -1
  7. package/dist/auth/components/AuthLayout.js +1 -2
  8. package/dist/auth/components/AuthLayout.js.map +1 -1
  9. package/dist/auth/components/CaptchaV2.js +9 -10
  10. package/dist/auth/components/CaptchaV2.js.map +1 -1
  11. package/dist/auth/components/ConfirmActionDialog.js +1 -2
  12. package/dist/auth/components/ConfirmActionDialog.js.map +1 -1
  13. package/dist/auth/components/profile/UserProfileMenu.js +7 -6
  14. package/dist/auth/components/profile/UserProfileMenu.js.map +1 -1
  15. package/dist/auth/components/workspace/WorkspaceSelector.js +1 -2
  16. package/dist/auth/components/workspace/WorkspaceSelector.js.map +1 -1
  17. package/dist/auth/constants/permissions.js +1 -2
  18. package/dist/auth/constants/permissions.js.map +1 -1
  19. package/dist/auth/constants/sessionKeys.js +1 -2
  20. package/dist/auth/constants/sessionKeys.js.map +1 -1
  21. package/dist/auth/hooks/contextDeepLink.js +1 -2
  22. package/dist/auth/hooks/contextDeepLink.js.map +1 -1
  23. package/dist/auth/hooks/index.js +12 -11
  24. package/dist/auth/hooks/useAccountOperations.js +1 -2
  25. package/dist/auth/hooks/useAccountOperations.js.map +1 -1
  26. package/dist/auth/hooks/useActiveContextBootstrapMirror.js +1 -2
  27. package/dist/auth/hooks/useActiveContextBootstrapMirror.js.map +1 -1
  28. package/dist/auth/hooks/useAuthOperations.js +37 -37
  29. package/dist/auth/hooks/useAuthOperations.js.map +1 -1
  30. package/dist/auth/hooks/useAuthPermissions.js +1 -2
  31. package/dist/auth/hooks/useAuthPermissions.js.map +1 -1
  32. package/dist/auth/hooks/useCaptchaV3.js +1 -2
  33. package/dist/auth/hooks/useCaptchaV3.js.map +1 -1
  34. package/dist/auth/hooks/useContextSwitcherData.js +86 -79
  35. package/dist/auth/hooks/useContextSwitcherData.js.map +1 -1
  36. package/dist/auth/hooks/useMfaOperations.js +4 -5
  37. package/dist/auth/hooks/useMfaOperations.js.map +1 -1
  38. package/dist/auth/hooks/useMyWorkspaces.js +4 -5
  39. package/dist/auth/hooks/useMyWorkspaces.js.map +1 -1
  40. package/dist/auth/hooks/useOAuthOperations.js +11 -12
  41. package/dist/auth/hooks/useOAuthOperations.js.map +1 -1
  42. package/dist/auth/hooks/usePasswordOperations.js +1 -2
  43. package/dist/auth/hooks/usePasswordOperations.js.map +1 -1
  44. package/dist/auth/hooks/useSessionOperations.js +3 -4
  45. package/dist/auth/hooks/useSessionOperations.js.map +1 -1
  46. package/dist/auth/hooks/useSignupCaptcha.js +1 -2
  47. package/dist/auth/hooks/useSignupCaptcha.js.map +1 -1
  48. package/dist/auth/hooks/useSsoOperations.js +80 -81
  49. package/dist/auth/hooks/useSsoOperations.js.map +1 -1
  50. package/dist/auth/hooks/useTokenRefresh.js +8 -12
  51. package/dist/auth/hooks/useTokenRefresh.js.map +1 -1
  52. package/dist/auth/hooks/useUserOperations.js +1 -2
  53. package/dist/auth/hooks/useUserOperations.js.map +1 -1
  54. package/dist/auth/hooks/useWorkspaceOperations.js +1 -2
  55. package/dist/auth/hooks/useWorkspaceOperations.js.map +1 -1
  56. package/dist/auth/hooks/useWorkspaceToken.js +1 -2
  57. package/dist/auth/hooks/useWorkspaceToken.js.map +1 -1
  58. package/dist/auth/index.js +19 -18
  59. package/dist/auth/pages/AuditLogPage.js +21 -22
  60. package/dist/auth/pages/AuditLogPage.js.map +1 -1
  61. package/dist/auth/pages/EmailVerifyPage.js +15 -17
  62. package/dist/auth/pages/EmailVerifyPage.js.map +1 -1
  63. package/dist/auth/pages/LoginPage.js +89 -105
  64. package/dist/auth/pages/LoginPage.js.map +1 -1
  65. package/dist/auth/pages/MagicLinkPage.js +30 -31
  66. package/dist/auth/pages/MagicLinkPage.js.map +1 -1
  67. package/dist/auth/pages/MfaSetupPage.js +18 -20
  68. package/dist/auth/pages/MfaSetupPage.js.map +1 -1
  69. package/dist/auth/pages/MfaVerifyPage.js +31 -35
  70. package/dist/auth/pages/MfaVerifyPage.js.map +1 -1
  71. package/dist/auth/pages/OAuthCallbackPage.js +4 -11
  72. package/dist/auth/pages/OAuthCallbackPage.js.map +1 -1
  73. package/dist/auth/pages/PasswordResetPage.js +20 -23
  74. package/dist/auth/pages/PasswordResetPage.js.map +1 -1
  75. package/dist/auth/pages/ReactivatePage.js +14 -18
  76. package/dist/auth/pages/ReactivatePage.js.map +1 -1
  77. package/dist/auth/pages/RegisterPage.js +180 -181
  78. package/dist/auth/pages/RegisterPage.js.map +1 -1
  79. package/dist/auth/pages/SSOClearPage.js +9 -10
  80. package/dist/auth/pages/SSOClearPage.js.map +1 -1
  81. package/dist/auth/pages/SSODepositPage.js +9 -13
  82. package/dist/auth/pages/SSODepositPage.js.map +1 -1
  83. package/dist/auth/pages/SSORelayCallbackPage.js +3 -7
  84. package/dist/auth/pages/SSORelayCallbackPage.js.map +1 -1
  85. package/dist/auth/pages/SSORelayPage.js +11 -10
  86. package/dist/auth/pages/SSORelayPage.js.map +1 -1
  87. package/dist/auth/pages/SecurityPage.js +19 -21
  88. package/dist/auth/pages/SecurityPage.js.map +1 -1
  89. package/dist/auth/pages/SessionBridgePage.js +9 -16
  90. package/dist/auth/pages/SessionBridgePage.js.map +1 -1
  91. package/dist/auth/pages/SessionsPage.js +17 -18
  92. package/dist/auth/pages/SessionsPage.js.map +1 -1
  93. package/dist/auth/pages/SsoCallbackPage.js +17 -22
  94. package/dist/auth/pages/SsoCallbackPage.js.map +1 -1
  95. package/dist/auth/pages/SsoConfigPage.js +69 -69
  96. package/dist/auth/pages/SsoConfigPage.js.map +1 -1
  97. package/dist/auth/pages/SsoLoginPage.js +9 -10
  98. package/dist/auth/pages/SsoLoginPage.js.map +1 -1
  99. package/dist/auth/pages/UserDetailsPage.js +16 -23
  100. package/dist/auth/pages/UserDetailsPage.js.map +1 -1
  101. package/dist/auth/pages/UserProfilePage.js +140 -141
  102. package/dist/auth/pages/UserProfilePage.js.map +1 -1
  103. package/dist/auth/pages/UsersPage.js +446 -453
  104. package/dist/auth/pages/UsersPage.js.map +1 -1
  105. package/dist/auth/providers/AuthProvider.js +1 -2
  106. package/dist/auth/providers/AuthProvider.js.map +1 -1
  107. package/dist/auth/providers/CaptchaProvider.js +1 -2
  108. package/dist/auth/providers/CaptchaProvider.js.map +1 -1
  109. package/dist/auth/store/authStore.js +5 -12
  110. package/dist/auth/store/authStore.js.map +1 -1
  111. package/dist/auth/utils/captchaConfig.js +5 -8
  112. package/dist/auth/utils/captchaConfig.js.map +1 -1
  113. package/dist/auth/utils/formatters.js +1 -2
  114. package/dist/auth/utils/formatters.js.map +1 -1
  115. package/dist/auth/utils/gatewayBaseUrls.js +1 -2
  116. package/dist/auth/utils/gatewayBaseUrls.js.map +1 -1
  117. package/dist/auth/utils/legalUrls.js +2 -3
  118. package/dist/auth/utils/legalUrls.js.map +1 -1
  119. package/dist/auth/utils/redirect.js +1 -2
  120. package/dist/auth/utils/redirect.js.map +1 -1
  121. package/dist/auth/utils/ssoOrigins.js +2 -3
  122. package/dist/auth/utils/ssoOrigins.js.map +1 -1
  123. package/dist/auth/utils/validation.js +34 -36
  124. package/dist/auth/utils/validation.js.map +1 -1
  125. package/dist/generated/global-operations.js +2 -3
  126. package/dist/generated/global-operations.js.map +1 -1
  127. package/dist/generated/wspace-operations.js +2 -3
  128. package/dist/generated/wspace-operations.js.map +1 -1
  129. package/dist/microfe-auth.css +1 -1
  130. package/dist/shared/hooks/useTr.js +1 -2
  131. package/dist/shared/hooks/useTr.js.map +1 -1
  132. package/dist/translations/en.js +1 -2
  133. package/dist/translations/en.js.map +1 -1
  134. package/dist/utils/nativeBridge.js +1 -2
  135. package/package.json +7 -3
@@ -1,10 +1,10 @@
1
- import { useAuth as e } from "../providers/AuthProvider.js";
2
- import { useAuthStore as t } from "../store/authStore.js";
3
- import { useTr as n } from "../../shared/hooks/useTr.js";
4
- import { useAuthOperations as r } from "../hooks/useAuthOperations.js";
5
- import { useMyWorkspaces as i } from "../hooks/useMyWorkspaces.js";
6
- import { useOAuthOperations as a } from "../hooks/useOAuthOperations.js";
7
- import { sanitizePostLoginPath as o } from "../utils/redirect.js";
1
+ import { useTr as e } from "../../shared/hooks/useTr.js";
2
+ import { useAuthOperations as t } from "../hooks/useAuthOperations.js";
3
+ import { useMyWorkspaces as n } from "../hooks/useMyWorkspaces.js";
4
+ import { useOAuthOperations as r } from "../hooks/useOAuthOperations.js";
5
+ import { sanitizePostLoginPath as i } from "../utils/redirect.js";
6
+ import { useAuthStore as a } from "../store/authStore.js";
7
+ import { useAuth as o } from "../providers/AuthProvider.js";
8
8
  import { AuthLayout as s } from "../components/AuthLayout.js";
9
9
  import { AlertIcon as c, EmailIcon as l, EyeIcon as ee, EyeOffIcon as te, GoogleIcon as u, LockIcon as ne, MicrosoftIcon as d, SpinnerIcon as f } from "../components/AuthIcons.js";
10
10
  import { useCaptchaV3 as re } from "../hooks/useCaptchaV3.js";
@@ -20,7 +20,7 @@ import { resolveGatewayUrls as ve } from "@burdenoff/fe-libs/shared/config/gatew
20
20
  import { Button as ye } from "@burdenoff/fe-libs/button";
21
21
  import { Checkbox as be, PagePurpose as xe } from "@burdenoff/fe-libs/ui";
22
22
  import { getProfileTokens as Se, getProfileUser as Ce, getProfileWorkspaceToken as we, getProfiles as Te, resolveActiveProfileId as Ee } from "@burdenoff/fe-libs/shared/providers/shell/ProfileStorageManager";
23
- //#region src/auth/pages/LoginPage.tsx
23
+ // src/auth/pages/LoginPage.tsx
24
24
  function y() {
25
25
  if (typeof window > "u") return !1;
26
26
  let e = window;
@@ -74,7 +74,7 @@ function x(e) {
74
74
  }
75
75
  }
76
76
  function S() {
77
- let b = n(), S = le(), C = ce(), [w] = ue(), { signIn: Ae, isLoading: T, error: E, errorCode: D, resendVerification: je } = r(), { completeAuthFlow: Me } = i(), { setWorkspace: O, setOrganization: Ne } = de(), { defaultPostLoginPath: Pe } = e(), { initiateGoogleOAuth: Fe, initiateMicrosoftOAuth: Ie, isProviderConfigured: k } = a(), Le = t((e) => e.mfaRequired), { executeRecaptcha: Re } = re(), [A, ze] = h(!1), [Be, Ve] = h(!1), He = p(async (e) => {
77
+ let b = e(), S = le(), C = ce(), [w] = ue(), { signIn: Ae, isLoading: T, error: E, errorCode: D, resendVerification: je } = t(), { completeAuthFlow: Me } = n(), { setWorkspace: O, setOrganization: Ne } = de(), { defaultPostLoginPath: Pe } = o(), { initiateGoogleOAuth: Fe, initiateMicrosoftOAuth: Ie, isProviderConfigured: k } = r(), Le = a((e) => e.mfaRequired), { executeRecaptcha: Re } = re(), [A, ze] = h(!1), [Be, Ve] = h(!1), He = p(async (e) => {
78
78
  if (typeof window > "u" || y()) return e;
79
79
  try {
80
80
  let t = _e(), n = new URL(t.url), r = window.location.origin;
@@ -104,28 +104,23 @@ function S() {
104
104
  return e;
105
105
  }
106
106
  }, []), j = ae(!1), M = p((e) => {
107
- let t = o(e);
108
- if (typeof window > "u") {
109
- S(t);
110
- return;
107
+ let t = i(e);
108
+ if (typeof window > "u") S(t);
109
+ else {
110
+ try {
111
+ sessionStorage.setItem("bf-post-login-return-to", t);
112
+ } catch {}
113
+ y() ? S(De(t)) : (j.current = !0, (async () => {
114
+ let e = await Promise.race([He(t), new Promise((e) => {
115
+ window.setTimeout(() => e(t), 3e3);
116
+ })]);
117
+ e.includes("/auth/sso-deposit") ? (fe(), window.location.assign(e), window.setTimeout(() => {
118
+ fe(), window.location.replace(e);
119
+ }, 2500)) : window.location.assign(e), window.setTimeout(() => {
120
+ typeof window < "u" && window.location.pathname === "/auth/login" && S("/dashboard");
121
+ }, 3500);
122
+ })());
111
123
  }
112
- try {
113
- sessionStorage.setItem("bf-post-login-return-to", t);
114
- } catch {}
115
- if (y()) {
116
- S(De(t));
117
- return;
118
- }
119
- j.current = !0, (async () => {
120
- let e = await Promise.race([He(t), new Promise((e) => {
121
- window.setTimeout(() => e(t), 3e3);
122
- })]);
123
- e.includes("/auth/sso-deposit") ? (fe(), window.location.assign(e), window.setTimeout(() => {
124
- fe(), window.location.replace(e);
125
- }, 2500)) : window.location.assign(e), window.setTimeout(() => {
126
- typeof window < "u" && window.location.pathname === "/auth/login" && S("/dashboard");
127
- }, 3500);
128
- })();
129
124
  }, [S, He]), [N, Ue] = h(!1), [P, F] = h(!1), [We, I] = h(!1), [Ge, L] = h(!1), [R, z] = h(!1), [B, V] = h(!1), [Ke, qe] = h(!1), [Je, H] = h(!1), [Ye, U] = h(null), [Xe, W] = h(null), [G, K] = h({
130
125
  email: "",
131
126
  password: "",
@@ -139,14 +134,14 @@ function S() {
139
134
  if (X || A || j.current || me()) return;
140
135
  let e = Ee();
141
136
  if (e) {
142
- let n = Se(e), r = Ce(e);
143
- if (n?.accessToken && r && Oe(n.accessToken)) {
144
- t.getState().loadFromProfile(e), M(ke(Z) ?? "/");
137
+ let t = Se(e), n = Ce(e);
138
+ if (t?.accessToken && n && Oe(t.accessToken)) {
139
+ a.getState().loadFromProfile(e), M(ke(Z) ?? "/");
145
140
  return;
146
141
  }
147
142
  }
148
- let n = se();
149
- n && (Ve(!0), window.location.replace(n));
143
+ let t = se();
144
+ t && (Ve(!0), window.location.replace(t));
150
145
  }, [
151
146
  X,
152
147
  A,
@@ -178,7 +173,6 @@ function S() {
178
173
  case "OAUTH_ONLY_ACCOUNT": return "OAUTH_ONLY";
179
174
  case "ACCOUNT_INACTIVE": return "INACTIVE";
180
175
  case "EMAIL_NOT_VERIFIED": return "EMAIL_NOT_VERIFIED";
181
- default: break;
182
176
  }
183
177
  if (!e) return null;
184
178
  let n = e.toLowerCase();
@@ -199,77 +193,67 @@ function S() {
199
193
  }, [Le, S]);
200
194
  let $e = async (e) => {
201
195
  e.preventDefault(), F(!1), I(!1), L(!1), z(!1), V(!1), Y(!1), H(!1), J(null);
202
- let n = (G.email ?? "").trim();
203
- if (!n) {
204
- J(b("auth.login.enterEmailOrUsername", "Please enter your email or username"));
205
- return;
206
- }
207
- if (n.includes("@") && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)) {
208
- J(b("auth.login.invalidEmail", "Please enter a valid email address"));
209
- return;
210
- }
211
- if (!G.password || G.password.length < 1) {
212
- J(b("auth.login.enterPassword", "Please enter your password"));
213
- return;
214
- }
215
- if (X && Te().some((e) => e.email.toLowerCase() === n.toLowerCase())) {
216
- Y(!0), J(null);
217
- return;
218
- }
219
- Y(!1);
220
- try {
221
- let e = await Re("login"), t = await Ae({
222
- email: n,
223
- password: G.password,
224
- rememberMe: G.rememberMe,
225
- ...e ? { recaptchaToken: e } : {}
226
- });
227
- if (t.requiresMFA) {
228
- let e = x(Q.current || Z || (Pe ?? "/dashboard"));
229
- try {
230
- sessionStorage.setItem(ie, e);
231
- } catch {}
232
- return;
233
- }
234
- if (t.success) {
235
- try {
236
- let e = t.user?.id;
237
- if (e) {
238
- let t = window.location.hostname.endsWith(".local.burdenoff.com") ? ".local.burdenoff.com" : void 0, n = t ? `; domain=${t}` : "", r = window.location.protocol === "https:" ? "; secure" : "", i = JSON.stringify({
239
- id: e,
240
- origin: window.location.origin
241
- });
242
- document.cookie = `bf-sso=${encodeURIComponent(i)}${n}; path=/; samesite=lax${r}; max-age=86400`, document.cookie = `bf-sso-profile=${encodeURIComponent(i)}${n}; path=/; samesite=lax${r}; max-age=86400`;
243
- }
244
- } catch {}
245
- try {
246
- G.rememberMe ? localStorage.setItem("remembered_email", n) : localStorage.removeItem("remembered_email");
247
- } catch (e) {
248
- console.warn("[LoginPage] Failed to save/clear remembered email:", e);
196
+ let t = (G.email ?? "").trim();
197
+ if (!t) J(b("auth.login.enterEmailOrUsername", "Please enter your email or username"));
198
+ else if (t.includes("@") && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)) J(b("auth.login.invalidEmail", "Please enter a valid email address"));
199
+ else if (!G.password || G.password.length < 1) J(b("auth.login.enterPassword", "Please enter your password"));
200
+ else if (X && Te().some((e) => e.email.toLowerCase() === t.toLowerCase())) Y(!0), J(null);
201
+ else {
202
+ Y(!1);
203
+ try {
204
+ let e = await Re("login"), n = await Ae({
205
+ email: t,
206
+ password: G.password,
207
+ rememberMe: G.rememberMe,
208
+ ...e ? { recaptchaToken: e } : {}
209
+ });
210
+ if (n.requiresMFA) {
211
+ let e = x(Q.current || Z || (Pe ?? "/dashboard"));
212
+ try {
213
+ sessionStorage.setItem(ie, e);
214
+ } catch {}
215
+ return;
249
216
  }
250
- ze(!0);
251
- let e = x(Q.current || Z || (Pe ?? "/dashboard"));
252
- try {
253
- let n = await Promise.race([Me(t.token), new Promise((e) => {
254
- window.setTimeout(() => {
255
- e({
256
- success: !1,
257
- error: "Auth flow timed out after login"
217
+ if (n.success) {
218
+ try {
219
+ let e = n.user?.id;
220
+ if (e) {
221
+ let t = window.location.hostname.endsWith(".local.burdenoff.com") ? ".local.burdenoff.com" : void 0, n = t ? `; domain=${t}` : "", r = window.location.protocol === "https:" ? "; secure" : "", i = JSON.stringify({
222
+ id: e,
223
+ origin: window.location.origin
258
224
  });
259
- }, 5e3);
260
- })]);
261
- n.success ? (n.workspace && (O(n.workspace.id), n.workspace.organizationId && Ne(n.workspace.organizationId)), M(e)) : n.error?.includes("No workspaces found") ? S("/onboarding/create-workspace") : (n.workspace && (O(n.workspace.id), n.workspace.organizationId && Ne(n.workspace.organizationId)), console.warn("Auth flow warning:", n.error), M(e));
262
- } catch (t) {
263
- console.error("Auth flow error (login succeeded):", t), M(e);
264
- } finally {
265
- j.current || ze(!1);
225
+ document.cookie = `bf-sso=${encodeURIComponent(i)}${n}; path=/; samesite=lax${r}; max-age=86400`, document.cookie = `bf-sso-profile=${encodeURIComponent(i)}${n}; path=/; samesite=lax${r}; max-age=86400`;
226
+ }
227
+ } catch {}
228
+ try {
229
+ G.rememberMe ? localStorage.setItem("remembered_email", t) : localStorage.removeItem("remembered_email");
230
+ } catch (e) {
231
+ console.warn("[LoginPage] Failed to save/clear remembered email:", e);
232
+ }
233
+ ze(!0);
234
+ let e = x(Q.current || Z || (Pe ?? "/dashboard"));
235
+ try {
236
+ let t = await Promise.race([Me(n.token), new Promise((e) => {
237
+ window.setTimeout(() => {
238
+ e({
239
+ success: !1,
240
+ error: "Auth flow timed out after login"
241
+ });
242
+ }, 5e3);
243
+ })]);
244
+ t.success ? (t.workspace && (O(t.workspace.id), t.workspace.organizationId && Ne(t.workspace.organizationId)), M(e)) : t.error?.includes("No workspaces found") ? S("/onboarding/create-workspace") : (t.workspace && (O(t.workspace.id), t.workspace.organizationId && Ne(t.workspace.organizationId)), console.warn("Auth flow warning:", t.error), M(e));
245
+ } catch (t) {
246
+ console.error("Auth flow error (login succeeded):", t), M(e);
247
+ } finally {
248
+ j.current || ze(!1);
249
+ }
266
250
  }
251
+ } catch (e) {
252
+ let t = e instanceof Error ? e.message : String(e);
253
+ t.includes("reCAPTCHA") && J(t);
254
+ let n = a.getState().errorCode, r = Qe(t, n);
255
+ r === "DELETED" ? I(!0) : r === "SUSPENDED" ? L(!0) : r === "OAUTH_ONLY" ? z(!0) : r === "INACTIVE" ? F(!0) : r === "EMAIL_NOT_VERIFIED" && V(!0);
267
256
  }
268
- } catch (e) {
269
- let n = e instanceof Error ? e.message : String(e);
270
- n.includes("reCAPTCHA") && J(n);
271
- let r = t.getState().errorCode, i = Qe(n, r);
272
- i === "DELETED" ? I(!0) : i === "SUSPENDED" ? L(!0) : i === "OAUTH_ONLY" ? z(!0) : i === "INACTIVE" ? F(!0) : i === "EMAIL_NOT_VERIFIED" && V(!0);
273
257
  }
274
258
  };
275
259
  m(() => {
@@ -295,7 +279,8 @@ function S() {
295
279
  }, nt = async () => {
296
280
  qe(!0), H(!1);
297
281
  try {
298
- (await je((G.email ?? "").trim())).success ? H(!0) : J(b("auth.login.resendFailed", "Failed to resend verification email. Please try again."));
282
+ let e = (G.email ?? "").trim();
283
+ (await je(e)).success ? H(!0) : J(b("auth.login.resendFailed", "Failed to resend verification email. Please try again."));
299
284
  } catch (e) {
300
285
  console.error("Failed to resend verification email:", e), J(e instanceof Error ? e.message : b("auth.login.resendFailed", "Failed to resend verification email. Please try again."));
301
286
  } finally {
@@ -625,7 +610,6 @@ function S() {
625
610
  ]
626
611
  });
627
612
  }
628
- //#endregion
629
613
  export { S as LoginPage };
630
614
 
631
615
  //# sourceMappingURL=LoginPage.js.map