@authing/guard-shim-react18 4.5.47-rc.4 → 4.5.47
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 +383 -377
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/SendCode/SendCodeByEmail.d.ts +3 -0
- package/dist/typings/src/SendCode/SendCodeByPhone.d.ts +1 -0
- package/dist/typings/src/Type/application.d.ts +17 -0
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/context.d.ts +4 -2
- package/package.json +1 -1
|
@@ -62,7 +62,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
62
62
|
getOriginAccount: () => string;
|
|
63
63
|
getOriginWay: () => string;
|
|
64
64
|
} | undefined;
|
|
65
|
-
referMultipleState: ((type: "
|
|
65
|
+
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
66
66
|
backfillData: BackFillMultipleState | undefined;
|
|
67
67
|
defaultQrWay: string | undefined;
|
|
68
68
|
};
|
|
@@ -9,5 +9,8 @@ export interface SendCodeByEmailProps extends InputProps {
|
|
|
9
9
|
fieldName?: string;
|
|
10
10
|
autoSubmit?: boolean;
|
|
11
11
|
scene: EmailScene;
|
|
12
|
+
captchaCode?: string;
|
|
13
|
+
onSendCodeError?: any;
|
|
14
|
+
codeFieldName?: string;
|
|
12
15
|
}
|
|
13
16
|
export declare const SendCodeByEmail: React.FC<SendCodeByEmailProps>;
|
|
@@ -408,6 +408,23 @@ export interface ApplicationConfig {
|
|
|
408
408
|
switch: 'OFF' | 'ON' | 'CONDON';
|
|
409
409
|
};
|
|
410
410
|
};
|
|
411
|
+
/** 注册阶段邮件安全配置 */
|
|
412
|
+
registerEmailConfig?: {
|
|
413
|
+
robot: {
|
|
414
|
+
switch: 'OFF' | 'ON' | 'CONDON';
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
/** 登录阶段邮件安全配置 */
|
|
418
|
+
loginEmailConfig?: {
|
|
419
|
+
robot: {
|
|
420
|
+
switch: 'OFF' | 'ON' | 'CONDON';
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
forgetPasswordEmailConfig?: {
|
|
424
|
+
robot: {
|
|
425
|
+
switch: 'OFF' | 'ON' | 'CONDON';
|
|
426
|
+
};
|
|
427
|
+
};
|
|
411
428
|
/** 特殊浏览器匹配字符串 */
|
|
412
429
|
specialBrowserSymbols?: string[];
|
|
413
430
|
resetPwdTipsConfig?: {
|
|
@@ -54,7 +54,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
54
54
|
loginMethods?: LoginMethods[] | undefined;
|
|
55
55
|
passwordLoginMethods?: string[] | undefined;
|
|
56
56
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
57
|
-
socialConnectionsBtnShape?: "button" | "
|
|
57
|
+
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
58
58
|
enterpriseConnections?: string[] | undefined;
|
|
59
59
|
qrCodeScanOptions?: {
|
|
60
60
|
extIdpConnId?: string | undefined;
|
|
@@ -164,5 +164,7 @@ export declare const useGuardDefaultLanguage: () => Lang;
|
|
|
164
164
|
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
165
165
|
/** 当前人机验证策略 */
|
|
166
166
|
export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
|
|
167
|
-
/**
|
|
168
|
-
export declare const
|
|
167
|
+
/** 当前应用短信是否开启人机验证策略 */
|
|
168
|
+
export declare const useSmsCaptchaCheck: (sence: 'login' | 'register' | 'forget-password') => boolean;
|
|
169
|
+
/** 当前应用邮件是否开启人机验证策略 */
|
|
170
|
+
export declare const useEmailCaptchaCheck: (sence: 'login' | 'register' | 'forget-password') => boolean;
|