@authing/guard-shim-react 4.5.12 → 4.5.13-alpha.2

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.
@@ -363,4 +363,16 @@ export interface ApplicationConfig {
363
363
  mfa: MFAType;
364
364
  changeable: boolean;
365
365
  }[];
366
+ /** 注册阶段短信安全配置 */
367
+ registerSmsConfig?: {
368
+ robot: {
369
+ switch: 'OFF' | 'ON' | 'CONDON';
370
+ };
371
+ };
372
+ /** 登录阶段短信安全配置 */
373
+ loginSmsConfig?: {
374
+ robot: {
375
+ switch: 'OFF' | 'ON' | 'CONDON';
376
+ };
377
+ };
366
378
  }
@@ -49,8 +49,6 @@ export interface IGuardContext {
49
49
  defaultLanguageConfig: Lang;
50
50
  /** 租户信息获取和操作处理相关 */
51
51
  tenantInstance?: MultipleTenant;
52
- /** 判断是否是国外的用户池 */
53
- isForeignUserpool: boolean;
54
52
  }
55
53
  export declare const createGuardXContext: () => {
56
54
  Provider: React.FC<{
@@ -162,5 +160,5 @@ export declare const useGuardDefaultLanguage: () => Lang;
162
160
  export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
163
161
  /** 当前人机验证策略 */
164
162
  export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
165
- /** 当前用户池是否是国外用户池 */
166
- export declare const useIsForeignUserpool: () => boolean;
163
+ /** 当前应用是否开启人机验证策略 */
164
+ export declare const useCaptchaCheck: (sence: 'login' | 'register') => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.12",
3
+ "version": "4.5.13-alpha.2",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",