@huyooo/ui 2.2.7 → 3.0.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 (26) hide show
  1. package/dist/{AuthkitAppSetting-K0qhtQoU.js → AuthkitAppSetting-DNUAV5I8.js} +95 -89
  2. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-hbfe8U5u.js → FeedbackModal.vue_vue_type_script_setup_true_lang-DEuryJ4s.js} +1 -1
  3. package/dist/{LegalDocViewer-C6yZJ_kH.js → LegalDocViewer-B8nGoL2n.js} +618 -621
  4. package/dist/{PricingPlans-BKbMjHaY.js → PricingPlans-B3HVDVac.js} +2 -2
  5. package/dist/{ReferrerReferees-BQ0_OW74.js → ReferrerReferees-DEdEjkFH.js} +1 -1
  6. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-K5_YUkGs.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Bal7vFj8.js} +4 -4
  7. package/dist/{WidthContainer-ummelwr_.js → WidthContainer-Ck7Cr5Wc.js} +4 -4
  8. package/dist/authkit.js +5 -5
  9. package/dist/common.js +1 -1
  10. package/dist/composables/Authkit/oauthCallback.d.ts +1 -1
  11. package/dist/composables/Authkit/useAuthkitAuth.d.ts +14 -3
  12. package/dist/composables.js +4 -4
  13. package/dist/feedback.js +1 -1
  14. package/dist/main.js +12 -12
  15. package/dist/pay.js +2 -2
  16. package/dist/referrer.js +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/types/api/auth.generated.d.ts +23 -0
  19. package/dist/useAuthkitAuth-DSC6QSKm.js +300 -0
  20. package/dist/{useAuthkitUsersProfile-DyjCmUka.js → useAuthkitUsersProfile-DSd5VA3_.js} +1 -1
  21. package/dist/{useEnsureAuthenticated-CpZcAqLg.js → useEnsureAuthenticated-COQKiCLk.js} +1 -1
  22. package/dist/{useRoutePermission-BCXxvMoU.js → useRoutePermission-DgQlbUBI.js} +1 -1
  23. package/dist/{useSubscriptionCheckout-D8W6v3YG.js → useSubscriptionCheckout-LrwlCr84.js} +1 -1
  24. package/dist/user.js +1 -1
  25. package/package.json +1 -1
  26. package/dist/useAuthkitAuth-HqXgYzfZ.js +0 -273
@@ -1351,6 +1351,19 @@ export type Api = {
1351
1351
  };
1352
1352
  };
1353
1353
  };
1354
+ oauth: {
1355
+ session: {
1356
+ exchange: {
1357
+ /** 用社交登录回调中的一次性 code 换取 access / refresh token */
1358
+ post: {
1359
+ body: {
1360
+ code: string;
1361
+ };
1362
+ return: any;
1363
+ };
1364
+ };
1365
+ };
1366
+ };
1354
1367
  refresh: {
1355
1368
  /** 使用 refreshToken 刷新 JWT */
1356
1369
  post: {
@@ -3488,6 +3501,16 @@ export interface ApiClient {
3488
3501
  }, config?: RequestConfig) => RequestBuilder<any>;
3489
3502
  };
3490
3503
  };
3504
+ oauth: {
3505
+ session: {
3506
+ exchange: {
3507
+ /** 用社交登录回调中的一次性 code 换取 access / refresh token */
3508
+ post: (body: {
3509
+ code: string;
3510
+ }, config?: RequestConfig) => RequestBuilder<any>;
3511
+ };
3512
+ };
3513
+ };
3491
3514
  refresh: {
3492
3515
  /** 使用 refreshToken 刷新 JWT */
3493
3516
  post: (body: {
@@ -0,0 +1,300 @@
1
+ import { ref as u, computed as m, nextTick as M, readonly as $ } from "vue";
2
+ import { o as D, g as f, r as G, s as R } from "./apiClients-8_c5cDW5.js";
3
+ import { u as K } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
4
+ const p = u(!1), g = u(!1);
5
+ let I;
6
+ const N = "请先阅读并同意用户协议与隐私政策", Y = {
7
+ required: !1,
8
+ userServiceAgreement: !1,
9
+ privacyPolicy: !1
10
+ };
11
+ function y() {
12
+ I && clearTimeout(I), g.value = !1, M(() => {
13
+ g.value = !0, I = setTimeout(() => {
14
+ g.value = !1;
15
+ }, 450);
16
+ });
17
+ }
18
+ function z(e) {
19
+ return [{
20
+ validator: (t, r) => {
21
+ if (!e()) {
22
+ r();
23
+ return;
24
+ }
25
+ if (t === !0) {
26
+ r();
27
+ return;
28
+ }
29
+ y(), r(N);
30
+ }
31
+ }];
32
+ }
33
+ function H() {
34
+ const {
35
+ appsData: e
36
+ } = K(), t = m(() => e.value.registrationTerms ?? Y), r = m(() => {
37
+ var n;
38
+ return ((n = e.value.signUpAuth) == null ? void 0 : n.enabled) !== !1;
39
+ }), o = m(() => r.value && !t.value.required);
40
+ function i() {
41
+ return r.value && t.value.required;
42
+ }
43
+ function d() {
44
+ return i();
45
+ }
46
+ function T() {
47
+ p.value = !1;
48
+ }
49
+ function v() {
50
+ return !d() || p.value ? !0 : (y(), !1);
51
+ }
52
+ function S(n) {
53
+ p.value = n;
54
+ }
55
+ function k(n) {
56
+ const s = m(() => n === "signUp" ? i() : d()), h = m(() => z(() => s.value));
57
+ return {
58
+ showTermsField: s,
59
+ termsRules: h
60
+ };
61
+ }
62
+ return {
63
+ acceptedTerms: p,
64
+ termsShaking: g,
65
+ registrationTerms: t,
66
+ signUpAuthEnabled: r,
67
+ registrationBlocked: o,
68
+ requiresAcceptanceForSignUp: i,
69
+ requiresAcceptanceForOAuth: d,
70
+ resetAcceptedTerms: T,
71
+ shakeTerms: y,
72
+ syncAcceptedTerms: S,
73
+ ensureTermsAcceptedForSignIn: v,
74
+ useTermsFormField: k
75
+ };
76
+ }
77
+ const c = u("signIn"), j = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), a = u(null), V = "jwtToken";
78
+ function O() {
79
+ try {
80
+ const e = localStorage.getItem(V);
81
+ if (e)
82
+ return a.value = e, !0;
83
+ } catch (e) {
84
+ console.warn("Failed to access localStorage:", e);
85
+ }
86
+ return !1;
87
+ }
88
+ typeof window < "u" && O();
89
+ let l = null;
90
+ function J() {
91
+ return l !== null;
92
+ }
93
+ function Q(e) {
94
+ e.searchParams.delete("loginCode"), window.history.replaceState({}, "", `${e.pathname}${e.search}${e.hash}`);
95
+ }
96
+ async function W(e) {
97
+ const {
98
+ data: t,
99
+ error: r
100
+ } = await f().auth.auth.oauth.session.exchange.post({
101
+ code: e
102
+ });
103
+ if (r || !(t != null && t.jwtToken))
104
+ return console.warn("OAuth session exchange failed:", r), null;
105
+ const o = {
106
+ jwtToken: t.jwtToken,
107
+ refreshToken: t.refreshToken ?? null,
108
+ userId: t.userId ?? null,
109
+ appId: t.appId ?? null,
110
+ needBindIdentity: t.needBindIdentity === !0
111
+ };
112
+ return o.refreshToken ? R({
113
+ jwtToken: o.jwtToken,
114
+ refreshToken: o.refreshToken
115
+ }) : P(o.jwtToken), _(o), o;
116
+ }
117
+ async function q() {
118
+ if (l)
119
+ return l;
120
+ const e = (async () => {
121
+ try {
122
+ const r = new URL(window.location.href), o = r.searchParams.get("loginCode");
123
+ if (!o) return null;
124
+ const i = await W(o);
125
+ return i ? (Q(r), i) : null;
126
+ } catch (r) {
127
+ return console.warn("Failed to handle OAuth callback:", r), null;
128
+ }
129
+ })();
130
+ l = e;
131
+ const t = await e;
132
+ return !t && l === e && (l = null), t;
133
+ }
134
+ async function X() {
135
+ return await q() ? !0 : O();
136
+ }
137
+ function x() {
138
+ return a.value || O() ? a.value : null;
139
+ }
140
+ function P(e) {
141
+ a.value = e;
142
+ try {
143
+ localStorage.setItem(V, e);
144
+ } catch (t) {
145
+ console.warn("Failed to save token to localStorage:", t);
146
+ }
147
+ }
148
+ function A(e) {
149
+ e.refreshToken ? R({
150
+ jwtToken: e.jwtToken,
151
+ refreshToken: e.refreshToken
152
+ }) : P(e.jwtToken), _(e);
153
+ }
154
+ function Z() {
155
+ a.value = null, re();
156
+ }
157
+ D(Z);
158
+ function U() {
159
+ G();
160
+ }
161
+ async function ee() {
162
+ if (!x())
163
+ return U(), !0;
164
+ const {
165
+ error: e
166
+ } = await f().auth.auth.signOut.post();
167
+ return U(), !e;
168
+ }
169
+ function w(e, t) {
170
+ return e.add(t), () => {
171
+ e.delete(t);
172
+ };
173
+ }
174
+ function _(e) {
175
+ j.forEach((t) => {
176
+ t(e);
177
+ });
178
+ }
179
+ function ne() {
180
+ F.forEach((e) => void e());
181
+ }
182
+ function te() {
183
+ E.forEach((e) => void e());
184
+ }
185
+ function re() {
186
+ b.forEach((e) => void e());
187
+ }
188
+ function oe(e) {
189
+ return w(j, e);
190
+ }
191
+ function se(e) {
192
+ return w(F, e);
193
+ }
194
+ function ie(e) {
195
+ return w(E, e);
196
+ }
197
+ function ue(e) {
198
+ return w(b, e);
199
+ }
200
+ function fe() {
201
+ const e = u(!1), t = u(!1), r = u(!1);
202
+ async function o(n) {
203
+ e.value = !0;
204
+ const {
205
+ data: s,
206
+ error: h
207
+ } = await f().auth.auth.signIn.unified.post({
208
+ identifier: n.identifier || n.email || "",
209
+ password: n.password,
210
+ code: n.code,
211
+ emailVerifyId: n.emailVerifyId,
212
+ method: n.method || "password"
213
+ });
214
+ if (e.value = !1, h || !s)
215
+ return;
216
+ A(s);
217
+ }
218
+ function i(n) {
219
+ A(n);
220
+ }
221
+ async function d(n) {
222
+ const {
223
+ resetAcceptedTerms: s,
224
+ acceptedTerms: h,
225
+ requiresAcceptanceForSignUp: C
226
+ } = H();
227
+ t.value = !0;
228
+ const L = C() ? h.value : void 0, {
229
+ error: B
230
+ } = n.type === "phone" ? await f().auth.auth.signUp.phone.post({
231
+ phone: n.phone || "",
232
+ code: n.code || "",
233
+ password: n.password,
234
+ inviteCode: n.inviteCode,
235
+ acceptedTerms: L === !0
236
+ }) : await f().auth.auth.signUp.post({
237
+ email: n.email || "",
238
+ userToken: n.userToken || "",
239
+ emailVerifyId: n.emailVerifyId || "",
240
+ password: n.password || "",
241
+ inviteCode: n.inviteCode,
242
+ acceptedTerms: L === !0
243
+ });
244
+ t.value = !1, !B && (s(), c.value = "signIn", ne());
245
+ }
246
+ async function T(n) {
247
+ r.value = !0;
248
+ const {
249
+ error: s
250
+ } = await f().auth.auth.resetPassword.post({
251
+ method: n.method || "email",
252
+ email: n.email,
253
+ phone: n.phone,
254
+ userToken: n.userToken,
255
+ code: n.code,
256
+ emailVerifyId: n.emailVerifyId,
257
+ password: n.password
258
+ });
259
+ r.value = !1, !s && (c.value = "signIn", te());
260
+ }
261
+ function v() {
262
+ c.value = "signUp";
263
+ }
264
+ function S() {
265
+ c.value = "resetPassword";
266
+ }
267
+ function k() {
268
+ c.value = "signIn";
269
+ }
270
+ return {
271
+ signInSubmit: o,
272
+ passkeySignInSubmit: i,
273
+ signUpSubmit: d,
274
+ resetPasswordSubmit: T,
275
+ currentView: c,
276
+ authSignInLoading: e,
277
+ authSignUpLoading: t,
278
+ resetPasswordLoading: r,
279
+ switchSignUp: v,
280
+ switchResetPassword: S,
281
+ switchSignIn: k,
282
+ onSignIn: oe,
283
+ onSignUp: se,
284
+ onResetPassword: ie,
285
+ onSignOut: ue,
286
+ jwtToken: $(a),
287
+ getToken: x,
288
+ setToken: P,
289
+ completeSignIn: A,
290
+ restoreSession: X,
291
+ consumeOAuthLoginCallback: q,
292
+ hasOAuthLoginConsumeStarted: J,
293
+ clearAuth: U,
294
+ signOut: ee
295
+ };
296
+ }
297
+ export {
298
+ H as a,
299
+ fe as u
300
+ };
@@ -1,6 +1,6 @@
1
1
  import { ref as a, computed as i } from "vue";
2
2
  import { g as p } from "./apiClients-8_c5cDW5.js";
3
- import { u as l } from "./useAuthkitAuth-HqXgYzfZ.js";
3
+ import { u as l } from "./useAuthkitAuth-DSC6QSKm.js";
4
4
  const e = a(null), n = a(!1), u = a(!1), s = a(!1);
5
5
  function v() {
6
6
  s.value = !0;
@@ -1,5 +1,5 @@
1
1
  import { computed as f } from "vue";
2
- import { u as r } from "./useAuthkitAuth-HqXgYzfZ.js";
2
+ import { u as r } from "./useAuthkitAuth-DSC6QSKm.js";
3
3
  import { u as d } from "./apiClients-8_c5cDW5.js";
4
4
  const A = "jwtToken";
5
5
  let e = null, i = !1;
@@ -1,7 +1,7 @@
1
1
  import { computed as g, ref as T, watch as k } from "vue";
2
2
  import { useRouter as R, useRoute as $ } from "vue-router";
3
3
  import { u as w } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
4
- import { u as I } from "./useAuthkitUsersProfile-DyjCmUka.js";
4
+ import { u as I } from "./useAuthkitUsersProfile-DSd5VA3_.js";
5
5
  import { g as C } from "./runtime-CDEl4QQl.js";
6
6
  function j(e, r = "default") {
7
7
  const t = document;
@@ -3,7 +3,7 @@ import { d as V } from "./useBillingStatusOptions-C8fwW-AI.js";
3
3
  import { g as $ } from "./apiClients-8_c5cDW5.js";
4
4
  /* empty css */
5
5
  import { Message as b } from "@arco-design/web-vue";
6
- import { u as _ } from "./useEnsureAuthenticated-CpZcAqLg.js";
6
+ import { u as _ } from "./useEnsureAuthenticated-COQKiCLk.js";
7
7
  function D(e) {
8
8
  var u;
9
9
  const i = (u = e == null ? void 0 : e.metadata) == null ? void 0 : u.originalPrice;
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-K5_YUkGs.js";
1
+ import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Bal7vFj8.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "2.2.7",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,273 +0,0 @@
1
- import { ref as u, computed as h, nextTick as _, readonly as x } from "vue";
2
- import { o as M, g as m, r as $, s as F } from "./apiClients-8_c5cDW5.js";
3
- import { u as D } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
4
- const g = u(!1), w = u(!1);
5
- let I;
6
- const G = "请先阅读并同意用户协议与隐私政策", K = {
7
- required: !1,
8
- userServiceAgreement: !1,
9
- privacyPolicy: !1
10
- };
11
- function A() {
12
- I && clearTimeout(I), w.value = !1, _(() => {
13
- w.value = !0, I = setTimeout(() => {
14
- w.value = !1;
15
- }, 450);
16
- });
17
- }
18
- function N(e) {
19
- return [{
20
- validator: (r, t) => {
21
- if (!e()) {
22
- t();
23
- return;
24
- }
25
- if (r === !0) {
26
- t();
27
- return;
28
- }
29
- A(), t(G);
30
- }
31
- }];
32
- }
33
- function Y() {
34
- const {
35
- appsData: e
36
- } = D(), r = h(() => e.value.registrationTerms ?? K), t = h(() => {
37
- var n;
38
- return ((n = e.value.signUpAuth) == null ? void 0 : n.enabled) !== !1;
39
- }), l = h(() => t.value && !r.value.required);
40
- function s() {
41
- return t.value && r.value.required;
42
- }
43
- function i() {
44
- return s();
45
- }
46
- function f() {
47
- g.value = !1;
48
- }
49
- function d() {
50
- return !i() || g.value ? !0 : (A(), !1);
51
- }
52
- function v(n) {
53
- g.value = n;
54
- }
55
- function S(n) {
56
- const o = h(() => n === "signUp" ? s() : i()), p = h(() => N(() => o.value));
57
- return {
58
- showTermsField: o,
59
- termsRules: p
60
- };
61
- }
62
- return {
63
- acceptedTerms: g,
64
- termsShaking: w,
65
- registrationTerms: r,
66
- signUpAuthEnabled: t,
67
- registrationBlocked: l,
68
- requiresAcceptanceForSignUp: s,
69
- requiresAcceptanceForOAuth: i,
70
- resetAcceptedTerms: f,
71
- shakeTerms: A,
72
- syncAcceptedTerms: v,
73
- ensureTermsAcceptedForSignIn: d,
74
- useTermsFormField: S
75
- };
76
- }
77
- const c = u("signIn"), O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set(), a = u(null), b = "jwtToken";
78
- function U() {
79
- try {
80
- const e = localStorage.getItem(b);
81
- if (e)
82
- return a.value = e, !0;
83
- } catch (e) {
84
- console.warn("Failed to access localStorage:", e);
85
- }
86
- return !1;
87
- }
88
- typeof window < "u" && U();
89
- function z() {
90
- try {
91
- const e = new URL(window.location.href), r = e.searchParams.get("token");
92
- if (!r) return !1;
93
- const t = e.searchParams.get("refreshToken"), l = e.searchParams.get("userId"), s = e.searchParams.get("appId"), i = e.searchParams.get("needBindIdentity") === "true";
94
- t ? F({
95
- jwtToken: r,
96
- refreshToken: t
97
- }) : P(r), ["token", "refreshToken", "userId", "appId", "needBindIdentity", "expiresIn"].forEach((d) => e.searchParams.delete(d));
98
- const f = `${e.pathname}${e.search}${e.hash}`;
99
- return window.history.replaceState({}, "", f), C({
100
- jwtToken: r,
101
- userId: l,
102
- appId: s,
103
- needBindIdentity: i
104
- }), !0;
105
- } catch (e) {
106
- return console.warn("Failed to handle OAuth callback:", e), !1;
107
- }
108
- }
109
- function H() {
110
- return z() ? !0 : U();
111
- }
112
- function q() {
113
- return a.value || U() ? a.value : null;
114
- }
115
- function P(e) {
116
- a.value = e;
117
- try {
118
- localStorage.setItem(b, e);
119
- } catch (r) {
120
- console.warn("Failed to save token to localStorage:", r);
121
- }
122
- }
123
- function k(e) {
124
- e.refreshToken ? F({
125
- jwtToken: e.jwtToken,
126
- refreshToken: e.refreshToken
127
- }) : P(e.jwtToken), C(e);
128
- }
129
- function J() {
130
- a.value = null, Z();
131
- }
132
- M(J);
133
- function y() {
134
- $();
135
- }
136
- async function Q() {
137
- if (!q())
138
- return y(), !0;
139
- const {
140
- error: e
141
- } = await m().auth.auth.signOut.post();
142
- return y(), !e;
143
- }
144
- function T(e, r) {
145
- return e.add(r), () => {
146
- e.delete(r);
147
- };
148
- }
149
- function C(e) {
150
- O.forEach((r) => {
151
- r(e);
152
- });
153
- }
154
- function W() {
155
- L.forEach((e) => void e());
156
- }
157
- function X() {
158
- j.forEach((e) => void e());
159
- }
160
- function Z() {
161
- V.forEach((e) => void e());
162
- }
163
- function ee(e) {
164
- return T(O, e);
165
- }
166
- function ne(e) {
167
- return T(L, e);
168
- }
169
- function re(e) {
170
- return T(j, e);
171
- }
172
- function te(e) {
173
- return T(V, e);
174
- }
175
- function ue() {
176
- const e = u(!1), r = u(!1), t = u(!1);
177
- async function l(n) {
178
- e.value = !0;
179
- const {
180
- data: o,
181
- error: p
182
- } = await m().auth.auth.signIn.unified.post({
183
- identifier: n.identifier || n.email || "",
184
- password: n.password,
185
- code: n.code,
186
- emailVerifyId: n.emailVerifyId,
187
- method: n.method || "password"
188
- });
189
- if (e.value = !1, p || !o)
190
- return;
191
- k(o);
192
- }
193
- function s(n) {
194
- k(n);
195
- }
196
- async function i(n) {
197
- const {
198
- resetAcceptedTerms: o,
199
- acceptedTerms: p,
200
- requiresAcceptanceForSignUp: R
201
- } = Y();
202
- r.value = !0;
203
- const E = R() ? p.value : void 0, {
204
- error: B
205
- } = n.type === "phone" ? await m().auth.auth.signUp.phone.post({
206
- phone: n.phone || "",
207
- code: n.code || "",
208
- password: n.password,
209
- inviteCode: n.inviteCode,
210
- acceptedTerms: E === !0
211
- }) : await m().auth.auth.signUp.post({
212
- email: n.email || "",
213
- userToken: n.userToken || "",
214
- emailVerifyId: n.emailVerifyId || "",
215
- password: n.password || "",
216
- inviteCode: n.inviteCode,
217
- acceptedTerms: E === !0
218
- });
219
- r.value = !1, !B && (o(), c.value = "signIn", W());
220
- }
221
- async function f(n) {
222
- t.value = !0;
223
- const {
224
- error: o
225
- } = await m().auth.auth.resetPassword.post({
226
- method: n.method || "email",
227
- email: n.email,
228
- phone: n.phone,
229
- userToken: n.userToken,
230
- code: n.code,
231
- emailVerifyId: n.emailVerifyId,
232
- password: n.password
233
- });
234
- t.value = !1, !o && (c.value = "signIn", X());
235
- }
236
- function d() {
237
- c.value = "signUp";
238
- }
239
- function v() {
240
- c.value = "resetPassword";
241
- }
242
- function S() {
243
- c.value = "signIn";
244
- }
245
- return {
246
- signInSubmit: l,
247
- passkeySignInSubmit: s,
248
- signUpSubmit: i,
249
- resetPasswordSubmit: f,
250
- currentView: c,
251
- authSignInLoading: e,
252
- authSignUpLoading: r,
253
- resetPasswordLoading: t,
254
- switchSignUp: d,
255
- switchResetPassword: v,
256
- switchSignIn: S,
257
- onSignIn: ee,
258
- onSignUp: ne,
259
- onResetPassword: re,
260
- onSignOut: te,
261
- jwtToken: x(a),
262
- getToken: q,
263
- setToken: P,
264
- completeSignIn: k,
265
- restoreSession: H,
266
- clearAuth: y,
267
- signOut: Q
268
- };
269
- }
270
- export {
271
- Y as a,
272
- ue as u
273
- };