@springmicro/auth 0.5.0 → 0.5.1
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-64ac63ff-BrMgwosO.js → Index-64ac63ff-Bb7oVTBw.js} +1 -1
- package/dist/{Index-6c094240-DXC18ikE.js → Index-6c094240-Cre9O000.js} +1 -1
- package/dist/{Web3Auth-DhI1eSsQ.js → Web3Auth-D-jzK5S2.js} +10 -10
- package/dist/{hashMessage-BQXVpTYE.js → hashMessage-1XTFjS64.js} +1 -1
- package/dist/{index-BXdspCS1.js → index-BCIsepdu.js} +45 -45
- package/dist/{index-DwdV0Emj.js → index-BcBHeHDh.js} +2 -2
- package/dist/{index-Be91u-op.js → index-Bi-yyFKX.js} +1 -1
- package/dist/{index-Cqd2rvl1.js → index-Bt-ptciq.js} +1 -1
- package/dist/{index-BRZ2plvc.js → index-D23L6orl.js} +4 -4
- package/dist/{index-Bpbr6WnZ.js → index-Dd6Cx4jI.js} +2 -2
- package/dist/{index-mpserFHa.js → index-m_M0OdCv.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +42 -42
- package/dist/{number-DAtvFp1_.js → number-DcOvM-ZJ.js} +1 -1
- package/package.json +2 -2
- package/src/components/forms/util/application-api.ts +3 -1
- package/src/components/forms/util/user-api.ts +1 -1
- package/src/components/util.tsx +1 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as D, t as ue, q as h, B as f, o as He, s as I, y as ce, C as ze, u as je, d as P, n as w, f as $, g as U, e as te } from "./Web3Auth-
|
|
1
|
+
import { i as D, t as ue, q as h, B as f, o as He, s as I, y as ce, C as ze, u as je, d as P, n as w, f as $, g as U, e as te } from "./Web3Auth-D-jzK5S2.js";
|
|
2
2
|
function A(e) {
|
|
3
3
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
4
4
|
throw new Error(`Wrong positive integer: ${e}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springmicro/auth",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"react-social-login-buttons": "^4.1.0",
|
|
55
55
|
"uuid": "^9.0.1"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e70cccb664b3229f00fd70be3f443f210124230d"
|
|
58
58
|
}
|
|
@@ -66,7 +66,9 @@ export function getApplication(owner: string, name: string) {
|
|
|
66
66
|
}/api/get-application?id=${owner}/${encodeURIComponent(name)}`,
|
|
67
67
|
{
|
|
68
68
|
method: "GET",
|
|
69
|
-
|
|
69
|
+
credentials: Setting.ROOT_URLS.casdoor.startsWith("https")
|
|
70
|
+
? "include"
|
|
71
|
+
: undefined,
|
|
70
72
|
headers: {
|
|
71
73
|
"Accept-Language": Setting.getAcceptLanguage(),
|
|
72
74
|
},
|
|
@@ -185,7 +185,7 @@ export function sendCode(
|
|
|
185
185
|
console.log(Object.fromEntries(formData.entries()));
|
|
186
186
|
return fetch(`${ROOT_URLS.casdoor}/api/send-verification-code`, {
|
|
187
187
|
method: "POST",
|
|
188
|
-
|
|
188
|
+
credentials: ROOT_URLS.casdoor.startsWith("https") ? "include" : undefined,
|
|
189
189
|
body: formData,
|
|
190
190
|
headers: {
|
|
191
191
|
"Accept-Language": getAcceptLanguage(),
|
package/src/components/util.tsx
CHANGED
|
@@ -166,8 +166,5 @@ export function getDefaultValues(signupItems: SignupItem[]) {
|
|
|
166
166
|
|
|
167
167
|
export function requiresCode(signupItem: SignupItem) {
|
|
168
168
|
const key = getKey(signupItem);
|
|
169
|
-
return (
|
|
170
|
-
(key === "email" || key === "phone") &&
|
|
171
|
-
signupItem.rule !== "No verification"
|
|
172
|
-
);
|
|
169
|
+
return (key === "email" || key === "phone") && signupItem.rule !== "None";
|
|
173
170
|
}
|