@authing/guard-shim-react 4.5.36-cxmt.0 → 4.5.37
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/guard.min.js +166 -172
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -2
- package/dist/typings/src/MFA/businessRequest.d.ts +1 -3
- package/dist/typings/src/MFA/interface.d.ts +1 -5
- package/dist/typings/src/SubmitButton/index.d.ts +1 -2
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/context.d.ts +1 -1
- package/package.json +1 -1
- package/dist/typings/src/MFA/core/cloudEntify.d.ts +0 -15
|
@@ -250,7 +250,7 @@ declare class MultipleAccount {
|
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
252
|
usertype?: string | undefined;
|
|
253
|
-
}, "
|
|
253
|
+
}, "tab" | "way" | "phoneCountryCode">) => void;
|
|
254
254
|
setLoginWayByHttpData: (account: string, data: {
|
|
255
255
|
username?: string | undefined;
|
|
256
256
|
phone?: string | undefined;
|
|
@@ -294,7 +294,7 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
|
|
|
294
294
|
id: string;
|
|
295
295
|
loginAccount?: string | undefined;
|
|
296
296
|
usertype?: string | undefined;
|
|
297
|
-
}, "
|
|
297
|
+
}, "tab" | "way" | "phoneCountryCode">) => void;
|
|
298
298
|
setLoginWayByHttpData: (account: string, data: {
|
|
299
299
|
username?: string | undefined;
|
|
300
300
|
phone?: string | undefined;
|
|
@@ -39,7 +39,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
39
39
|
id: string;
|
|
40
40
|
loginAccount?: string | undefined;
|
|
41
41
|
usertype?: string | undefined;
|
|
42
|
-
}, "
|
|
42
|
+
}, "tab" | "way" | "phoneCountryCode">) => void;
|
|
43
43
|
setLoginWayByHttpData: (account: string, data: {
|
|
44
44
|
username?: string | undefined;
|
|
45
45
|
phone?: string | undefined;
|
|
@@ -61,7 +61,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
61
61
|
getOriginAccount: () => string;
|
|
62
62
|
getOriginWay: () => string;
|
|
63
63
|
} | undefined;
|
|
64
|
-
referMultipleState: ((type: "
|
|
64
|
+
referMultipleState: ((type: "multiple" | "login") => void) | undefined;
|
|
65
65
|
backfillData: BackFillMultipleState | undefined;
|
|
66
66
|
defaultQrWay: string | undefined;
|
|
67
67
|
};
|
|
@@ -7,8 +7,7 @@ export declare enum MfaBusinessAction {
|
|
|
7
7
|
VerifyFace = "verify-face",
|
|
8
8
|
AssociateFace = "associate-face",
|
|
9
9
|
PasskeyBind = "passkey-bind",
|
|
10
|
-
PasskeyVerify = "passkey-verify"
|
|
11
|
-
VerifyCloudEntify = "verify-cloudentify"
|
|
10
|
+
PasskeyVerify = "passkey-verify"
|
|
12
11
|
}
|
|
13
12
|
export declare const authFlow: (action: MfaBusinessAction, content: any) => Promise<AuthingGuardResponse<any>>;
|
|
14
13
|
interface VerifySmsContent {
|
|
@@ -64,6 +63,5 @@ export declare const useMfaBusinessRequest: () => {
|
|
|
64
63
|
"associate-face": (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>;
|
|
65
64
|
"passkey-bind": (content: BindPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
|
|
66
65
|
"passkey-verify": (content: VerifyPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
|
|
67
|
-
"verify-cloudentify": (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>;
|
|
68
66
|
};
|
|
69
67
|
export {};
|
|
@@ -12,11 +12,7 @@ export declare enum MFAType {
|
|
|
12
12
|
EMAIL = "EMAIL",
|
|
13
13
|
TOTP = "OTP",
|
|
14
14
|
FACE = "FACE",
|
|
15
|
-
PASSKEY = "PASSKEY"
|
|
16
|
-
/**
|
|
17
|
-
* cxmt 飞天云信
|
|
18
|
-
*/
|
|
19
|
-
CLOUDENTIFY = "CLOUDENTIFY"
|
|
15
|
+
PASSKEY = "PASSKEY"
|
|
20
16
|
}
|
|
21
17
|
export interface GuardMFAInitData {
|
|
22
18
|
mfaToken: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
2
|
import { ButtonProps } from 'shim-antd';
|
|
3
|
-
import { DefaultTFuncReturn } from 'i18next';
|
|
4
3
|
interface SubmitButtonProps extends ButtonProps {
|
|
5
|
-
text?: string
|
|
4
|
+
text?: string;
|
|
6
5
|
className?: string;
|
|
7
6
|
onClick?: any;
|
|
8
7
|
disabled?: boolean;
|
|
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
53
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
54
|
passwordLoginMethods?: string[] | undefined;
|
|
55
55
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
56
|
+
socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
|
@@ -123,7 +123,7 @@ export declare const useGuardAccountSelectInstance: () => {
|
|
|
123
123
|
id: string;
|
|
124
124
|
loginAccount?: string | undefined;
|
|
125
125
|
usertype?: string | undefined;
|
|
126
|
-
}, "
|
|
126
|
+
}, "tab" | "way" | "phoneCountryCode">) => void;
|
|
127
127
|
setLoginWayByHttpData: (account: string, data: {
|
|
128
128
|
username?: string | undefined;
|
|
129
129
|
phone?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GuardMFAInitData, MFAConfig } from '../interface';
|
|
2
|
-
import { React } from 'shim-react';
|
|
3
|
-
export interface VerifyMFATotpProps {
|
|
4
|
-
mfaToken: string;
|
|
5
|
-
mfaLogin: any;
|
|
6
|
-
changeModule: any;
|
|
7
|
-
}
|
|
8
|
-
export declare const VerifyMFATotp: React.FC<VerifyMFATotpProps>;
|
|
9
|
-
export interface MFATotpProps {
|
|
10
|
-
changeModule: any;
|
|
11
|
-
config: MFAConfig;
|
|
12
|
-
initData: GuardMFAInitData;
|
|
13
|
-
mfaLogin: any;
|
|
14
|
-
}
|
|
15
|
-
export declare const MFACloudEntify: React.FC<MFATotpProps>;
|