@springmicro/auth 0.7.16 → 0.7.19
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/dist/{Index-1e31d199-CO-3sUD-.js → Index-1e31d199-uzuBdtPJ.js} +1 -1
- package/dist/{Index-6078f122-CDowfR7U.js → Index-6078f122-DLKGZ31_.js} +1 -1
- package/dist/{Web3Auth-C1gorwXx.js → Web3Auth-Zi4vzALJ.js} +10 -10
- package/dist/{index-C2J9ZZ0N.js → index-1_Q3geSC.js} +1 -1
- package/dist/{index-D0GY6Fny.js → index-B4ilnhZS.js} +1400 -1751
- package/dist/{index-cTAxNlZn.js → index-BrtZvnd0.js} +1 -1
- package/dist/{index-DJiTRo2_.js → index-Bu--mwXK.js} +2 -2
- package/dist/{index-ClXLxv7Y.js → index-C8ynRf9-.js} +2 -2
- package/dist/{index-BLh7Sl_6.js → index-Cn-_BAwo.js} +4 -4
- package/dist/{index-bH4yLInF.js → index-Cw8vH8KI.js} +1 -1
- package/dist/{index-BIEw47XG.js → index-XgTFhms9.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +220 -228
- package/dist/{number-9K9sKV6s.js → number-BfxMSPkm.js} +1 -1
- package/package.json +4 -4
- package/src/components/SignUp.tsx +19 -19
- package/src/components/forms/CaptchaController.tsx +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as te, i as A, q as c, B as u, o as Te, s as x, y as ne, C as Be, u as Ee, d as g, n as y, h as O, g as I, e as K } from "./Web3Auth-
|
|
1
|
+
import { t as te, i as A, q as c, B as u, o as Te, s as x, y as ne, C as Be, u as Ee, d as g, n as y, h as O, g as I, e as K } from "./Web3Auth-Zi4vzALJ.js";
|
|
2
2
|
import { w as Oe, H as Fe, n as X, d as Ge, e as Y, t as Le, b as $e, o as Ue, s as ze } from "./sha256-JJGtJ2gn.js";
|
|
3
3
|
const E = /* @__PURE__ */ BigInt(2 ** 32 - 1), W = /* @__PURE__ */ BigInt(32);
|
|
4
4
|
function Ce(e, t = !1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springmicro/auth",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"preview": "vite preview"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"react": "^
|
|
20
|
-
"react-dom": "^
|
|
19
|
+
"react": "^19.2.4",
|
|
20
|
+
"react-dom": "^19.2.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.14.9",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"react-social-login-buttons": "^4.1.0",
|
|
54
54
|
"uuid": "^9.0.1"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "5242f8a3ea5bde25f4b6681f9a30baae76713016"
|
|
57
57
|
}
|
|
@@ -86,7 +86,7 @@ function SignUpForm(props: SignUpFormProps) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
onUpdateApplication(res.data);
|
|
89
|
-
}
|
|
89
|
+
},
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
const getApplicationLogin = (oAuthParams: any) => {
|
|
@@ -110,7 +110,7 @@ function SignUpForm(props: SignUpFormProps) {
|
|
|
110
110
|
|
|
111
111
|
const getInvitationCodeInfo = (
|
|
112
112
|
invitationCode: string,
|
|
113
|
-
application: string
|
|
113
|
+
application: string,
|
|
114
114
|
) => {
|
|
115
115
|
InvitationBackend.getInvitationCodeInfo(invitationCode, application).then(
|
|
116
116
|
(res: any) => {
|
|
@@ -119,7 +119,7 @@ function SignUpForm(props: SignUpFormProps) {
|
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
setState({ ...state, invitation: res.data });
|
|
122
|
-
}
|
|
122
|
+
},
|
|
123
123
|
);
|
|
124
124
|
};
|
|
125
125
|
|
|
@@ -136,7 +136,7 @@ function SignUpForm(props: SignUpFormProps) {
|
|
|
136
136
|
if (oAuthParams !== null) {
|
|
137
137
|
const signinUrl = window.location.pathname.replace(
|
|
138
138
|
"/signup/oauth/authorize",
|
|
139
|
-
"/login/oauth/authorize"
|
|
139
|
+
"/login/oauth/authorize",
|
|
140
140
|
);
|
|
141
141
|
sessionStorage.setItem("signinUrl", signinUrl + window.location.search);
|
|
142
142
|
}
|
|
@@ -152,7 +152,7 @@ function SignUpForm(props: SignUpFormProps) {
|
|
|
152
152
|
if (invitationCode !== "") {
|
|
153
153
|
getInvitationCodeInfo(
|
|
154
154
|
invitationCode,
|
|
155
|
-
"admin/" + state.applicationName
|
|
155
|
+
"admin/" + state.applicationName,
|
|
156
156
|
);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -161,7 +161,7 @@ function SignUpForm(props: SignUpFormProps) {
|
|
|
161
161
|
} else {
|
|
162
162
|
Setting.showMessage(
|
|
163
163
|
"error",
|
|
164
|
-
`Unknown application name: ${state.applicationName}
|
|
164
|
+
`Unknown application name: ${state.applicationName}`,
|
|
165
165
|
);
|
|
166
166
|
onUpdateApplication(null);
|
|
167
167
|
}
|
|
@@ -206,7 +206,7 @@ export function SignUp({
|
|
|
206
206
|
const getApplication = () => {
|
|
207
207
|
ApplicationBackend.getApplication("admin", applicationName).then(
|
|
208
208
|
(res: any) => {
|
|
209
|
-
console.log(res);
|
|
209
|
+
// console.log(res);
|
|
210
210
|
if (res.status === "error") {
|
|
211
211
|
Setting.showMessage("error", res.msg);
|
|
212
212
|
return;
|
|
@@ -215,7 +215,7 @@ export function SignUp({
|
|
|
215
215
|
setState({
|
|
216
216
|
application: res.data,
|
|
217
217
|
});
|
|
218
|
-
}
|
|
218
|
+
},
|
|
219
219
|
);
|
|
220
220
|
};
|
|
221
221
|
|
|
@@ -245,7 +245,7 @@ interface SignUpContextType {
|
|
|
245
245
|
getFormProps: typeof getFormProps;
|
|
246
246
|
icon: (
|
|
247
247
|
signupItem: SignupItem,
|
|
248
|
-
Button: React.JSX.ElementType
|
|
248
|
+
Button: React.JSX.ElementType,
|
|
249
249
|
) => React.JSX.Element | null;
|
|
250
250
|
getZod: typeof getZod;
|
|
251
251
|
getKey: typeof getKey;
|
|
@@ -258,7 +258,7 @@ interface SignUpContextType {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
const SignUpContext = React.createContext<SignUpContextType | undefined>(
|
|
261
|
-
undefined
|
|
261
|
+
undefined,
|
|
262
262
|
);
|
|
263
263
|
|
|
264
264
|
export function SignUpProvider({
|
|
@@ -281,7 +281,7 @@ export function SignUpProvider({
|
|
|
281
281
|
const getApplication = () => {
|
|
282
282
|
ApplicationBackend.getApplication("admin", applicationName).then(
|
|
283
283
|
(res: any) => {
|
|
284
|
-
console.log(res);
|
|
284
|
+
// console.log(res);
|
|
285
285
|
if (res.status === "error") {
|
|
286
286
|
Setting.showMessage("error", res.msg);
|
|
287
287
|
return;
|
|
@@ -290,7 +290,7 @@ export function SignUpProvider({
|
|
|
290
290
|
setState({
|
|
291
291
|
application: res.data,
|
|
292
292
|
});
|
|
293
|
-
}
|
|
293
|
+
},
|
|
294
294
|
);
|
|
295
295
|
};
|
|
296
296
|
|
|
@@ -302,7 +302,7 @@ export function SignUpProvider({
|
|
|
302
302
|
|
|
303
303
|
const getInvitationCodeInfo = (
|
|
304
304
|
invitationCode: string,
|
|
305
|
-
application: string
|
|
305
|
+
application: string,
|
|
306
306
|
) => {
|
|
307
307
|
InvitationBackend.getInvitationCodeInfo(invitationCode, application).then(
|
|
308
308
|
(res: any) => {
|
|
@@ -311,7 +311,7 @@ export function SignUpProvider({
|
|
|
311
311
|
return;
|
|
312
312
|
}
|
|
313
313
|
setState({ ...state, invitation: res.data });
|
|
314
|
-
}
|
|
314
|
+
},
|
|
315
315
|
);
|
|
316
316
|
};
|
|
317
317
|
|
|
@@ -339,7 +339,7 @@ export function SignUpProvider({
|
|
|
339
339
|
setState: setTogglePasswordVisibility,
|
|
340
340
|
},
|
|
341
341
|
},
|
|
342
|
-
Button
|
|
342
|
+
Button,
|
|
343
343
|
);
|
|
344
344
|
};
|
|
345
345
|
|
|
@@ -360,7 +360,7 @@ export function SignUpProvider({
|
|
|
360
360
|
React.useEffect(() => {
|
|
361
361
|
if (state.application) {
|
|
362
362
|
setTogglePasswordVisibility(
|
|
363
|
-
getPasswordVisibilityRecord(state.application.signupItems)
|
|
363
|
+
getPasswordVisibilityRecord(state.application.signupItems),
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
}, [state.application]);
|
|
@@ -370,7 +370,7 @@ export function SignUpProvider({
|
|
|
370
370
|
if (oAuthParams !== null) {
|
|
371
371
|
const signinUrl = window.location.pathname.replace(
|
|
372
372
|
"/signup/oauth/authorize",
|
|
373
|
-
"/login/oauth/authorize"
|
|
373
|
+
"/login/oauth/authorize",
|
|
374
374
|
);
|
|
375
375
|
sessionStorage.setItem("signinUrl", signinUrl + window.location.search);
|
|
376
376
|
}
|
|
@@ -386,7 +386,7 @@ export function SignUpProvider({
|
|
|
386
386
|
if (invitationCode !== "") {
|
|
387
387
|
getInvitationCodeInfo(
|
|
388
388
|
invitationCode,
|
|
389
|
-
"admin/" + state.applicationName
|
|
389
|
+
"admin/" + state.applicationName,
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
@@ -395,7 +395,7 @@ export function SignUpProvider({
|
|
|
395
395
|
} else {
|
|
396
396
|
Setting.showMessage(
|
|
397
397
|
"error",
|
|
398
|
-
`Unknown application name: ${state.applicationName}
|
|
398
|
+
`Unknown application name: ${state.applicationName}`,
|
|
399
399
|
);
|
|
400
400
|
onUpdateApplication(null);
|
|
401
401
|
}
|
|
@@ -28,13 +28,13 @@ export default function CaptchaController() {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
const captchaCallback = (v: any) => {
|
|
31
|
-
console.log(v);
|
|
31
|
+
// console.log(v);
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
const onOk = (
|
|
35
35
|
captchaType: string,
|
|
36
36
|
captchaToken: string,
|
|
37
|
-
clientSecret: string
|
|
37
|
+
clientSecret: string,
|
|
38
38
|
) => {
|
|
39
39
|
if (dialogRef.current) {
|
|
40
40
|
// @ts-ignore
|