@springmicro/auth 0.5.3 → 0.5.5
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-CSMaEBDA.js → Index-64ac63ff-C7Av5-xP.js} +1 -1
- package/dist/{Index-6c094240-mSgidTC1.js → Index-6c094240-BCXMyaWx.js} +1 -1
- package/dist/{Web3Auth-R27O2eCc.js → Web3Auth-hzrmIcT1.js} +10 -10
- package/dist/{hashMessage-B7KFzddV.js → hashMessage-DysoAmGZ.js} +1 -1
- package/dist/{index-ChYsa81u.js → index-BeiBc_gv.js} +2 -2
- package/dist/{index-TsElTuix.js → index-C2eVtjVv.js} +1 -1
- package/dist/{index-C8xLRoDS.js → index-DUwhqFWy.js} +1 -1
- package/dist/{index-1HLXgKdW.js → index-DXfwe7Zk.js} +2 -2
- package/dist/{index-D_yyUC2r.js → index-DYTvS1uk.js} +1033 -1063
- package/dist/{index-ayOaYQgv.js → index-Da0T7bYG.js} +4 -4
- package/dist/{index-Cp0Pai1C.js → index-LO_EWnJy.js} +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +37 -37
- package/dist/{number-D9Q-3_Cz.js → number-CYbm8TMo.js} +1 -1
- package/package.json +2 -2
- package/src/components/SignUp.tsx +34 -61
- package/src/components/forms/SendCodeInput.tsx +2 -8
- package/src/components/forms/SignUpFormItem.tsx +1 -5
- package/src/components/forms/util/application-api.ts +2 -8
- package/src/components/forms/util/user-api.ts +4 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as O, s as Z, t as Ne, n as j, p as he, b as ys, a as gs, i as Re, c as Bt, d as Q, h as Ue, e as At, I as ms, f as ft, g as ws, j as pr, k as vs, l as lt, m as Cn, o as ye, q as qe } from "./Web3Auth-
|
|
2
|
-
import { v as lc, w as dc, x as pc, S as bc, y as hc, z as yc, r as gc, C as mc, D as wc, u as vc, E as Ec, F as xc, A as Pc, G as Bc, H as Ac } from "./Web3Auth-
|
|
3
|
-
import { k as W, c as ee, i as te, I as ve, s as xt, a as br, b as Es, d as xs, e as Ps, p as an, f as ge, E as mt, F as Ht, g as jn, N as Fn, h as qn, j as Mn, l as zn, m as Ln, n as _n, T as Dn, o as Gt, U as cn, q as Bs, r as hr, t as As, u as Ts, v as Is, w as Os, x as Ss, y as yr, P as ks, z as Ee, C as Ut, A as gr, B as mr, D as Ns, G as wr, H as Rs, J as $s, K as Cs, L as js, M as Hn, O as Fs, Q as qs, R as Ms, S as zs, W as Gn } from "./number-
|
|
4
|
-
import { X as Ic, Y as Oc, Z as Sc, _ as kc, a6 as Nc, a7 as Rc, a8 as $c, a9 as Cc, ab as jc, $ as Fc, ac as qc, a0 as Mc, a2 as zc, a3 as Lc, V as _c, a4 as Dc, ae as Hc, af as Gc, ad as Uc, ag as Vc, aa as Zc, a5 as Wc, a1 as Yc } from "./number-
|
|
1
|
+
import { B as O, s as Z, t as Ne, n as j, p as he, b as ys, a as gs, i as Re, c as Bt, d as Q, h as Ue, e as At, I as ms, f as ft, g as ws, j as pr, k as vs, l as lt, m as Cn, o as ye, q as qe } from "./Web3Auth-hzrmIcT1.js";
|
|
2
|
+
import { v as lc, w as dc, x as pc, S as bc, y as hc, z as yc, r as gc, C as mc, D as wc, u as vc, E as Ec, F as xc, A as Pc, G as Bc, H as Ac } from "./Web3Auth-hzrmIcT1.js";
|
|
3
|
+
import { k as W, c as ee, i as te, I as ve, s as xt, a as br, b as Es, d as xs, e as Ps, p as an, f as ge, E as mt, F as Ht, g as jn, N as Fn, h as qn, j as Mn, l as zn, m as Ln, n as _n, T as Dn, o as Gt, U as cn, q as Bs, r as hr, t as As, u as Ts, v as Is, w as Os, x as Ss, y as yr, P as ks, z as Ee, C as Ut, A as gr, B as mr, D as Ns, G as wr, H as Rs, J as $s, K as Cs, L as js, M as Hn, O as Fs, Q as qs, R as Ms, S as zs, W as Gn } from "./number-CYbm8TMo.js";
|
|
4
|
+
import { X as Ic, Y as Oc, Z as Sc, _ as kc, a6 as Nc, a7 as Rc, a8 as $c, a9 as Cc, ab as jc, $ as Fc, ac as qc, a0 as Mc, a2 as zc, a3 as Lc, V as _c, a4 as Dc, ae as Hc, af as Gc, ad as Uc, ag as Vc, aa as Zc, a5 as Wc, a1 as Yc } from "./number-CYbm8TMo.js";
|
|
5
5
|
function Ls(e, t) {
|
|
6
6
|
const n = e.exec(t);
|
|
7
7
|
return n == null ? void 0 : n.groups;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as y, h as T, a as k } from "./hashMessage-
|
|
1
|
+
import { e as y, h as T, a as k } from "./hashMessage-DysoAmGZ.js";
|
|
2
2
|
const I = () => "9.1.0", q = (t) => t.toString(16).padStart(2, "0"), v = (t) => {
|
|
3
3
|
const e = new Uint8Array(t / 2);
|
|
4
4
|
return window.crypto.getRandomValues(e), Array.from(e, q).join("");
|
package/dist/index.d.ts
CHANGED
|
@@ -75,11 +75,11 @@ declare function requiresCode(signupItem: SignupItem): boolean;
|
|
|
75
75
|
|
|
76
76
|
declare function resetEmailOrPhone(dest: any, type: any, code: any): Promise<any>;
|
|
77
77
|
|
|
78
|
-
declare function sendCode(captchaType: any, captchaToken: any, clientSecret: any, method: any, countryCode: string, dest: any, type: any, applicationId: any, checkUser
|
|
78
|
+
declare function sendCode(captchaType: any, captchaToken: any, clientSecret: any, method: any, countryCode: string, dest: any, type: any, applicationId: any, checkUser?: string): Promise<boolean>;
|
|
79
79
|
|
|
80
80
|
declare function setPassword(userOwner: any, userName: any, oldPassword: any, newPassword: any, code?: string): Promise<any>;
|
|
81
81
|
|
|
82
|
-
export declare function SignUp({ applicationName, casdoorApiRoot, springmicroApiRoot,
|
|
82
|
+
export declare function SignUp({ applicationName, casdoorApiRoot, springmicroApiRoot, }: SignUpProps): JSX_2.Element;
|
|
83
83
|
|
|
84
84
|
declare interface SignUpContextType {
|
|
85
85
|
application: Application;
|
|
@@ -109,11 +109,9 @@ declare type SignUpProps = {
|
|
|
109
109
|
applicationName: string;
|
|
110
110
|
casdoorApiRoot: string;
|
|
111
111
|
springmicroApiRoot?: string;
|
|
112
|
-
CLIENT_ID: string;
|
|
113
|
-
CLIENT_SECRET: string;
|
|
114
112
|
};
|
|
115
113
|
|
|
116
|
-
export declare function SignUpProvider({ applicationName, casdoorApiRoot, springmicroApiRoot,
|
|
114
|
+
export declare function SignUpProvider({ applicationName, casdoorApiRoot, springmicroApiRoot, children, }: default_2.PropsWithChildren<SignUpProps>): JSX_2.Element;
|
|
117
115
|
|
|
118
116
|
declare function updateUser(owner: any, name: any, user: any): Promise<any>;
|
|
119
117
|
|
package/dist/index.js
CHANGED