@authing/guard-shim-react 4.5.35 → 4.5.36-cxmt.0

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.
@@ -7,7 +7,8 @@ export declare enum MfaBusinessAction {
7
7
  VerifyFace = "verify-face",
8
8
  AssociateFace = "associate-face",
9
9
  PasskeyBind = "passkey-bind",
10
- PasskeyVerify = "passkey-verify"
10
+ PasskeyVerify = "passkey-verify",
11
+ VerifyCloudEntify = "verify-cloudentify"
11
12
  }
12
13
  export declare const authFlow: (action: MfaBusinessAction, content: any) => Promise<AuthingGuardResponse<any>>;
13
14
  interface VerifySmsContent {
@@ -63,5 +64,6 @@ export declare const useMfaBusinessRequest: () => {
63
64
  "associate-face": (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>;
64
65
  "passkey-bind": (content: BindPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
65
66
  "passkey-verify": (content: VerifyPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
67
+ "verify-cloudentify": (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>;
66
68
  };
67
69
  export {};
@@ -0,0 +1,15 @@
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>;
@@ -12,7 +12,11 @@ export declare enum MFAType {
12
12
  EMAIL = "EMAIL",
13
13
  TOTP = "OTP",
14
14
  FACE = "FACE",
15
- PASSKEY = "PASSKEY"
15
+ PASSKEY = "PASSKEY",
16
+ /**
17
+ * cxmt 飞天云信
18
+ */
19
+ CLOUDENTIFY = "CLOUDENTIFY"
16
20
  }
17
21
  export interface GuardMFAInitData {
18
22
  mfaToken: string;
@@ -1,7 +1,8 @@
1
1
  import { React } from 'shim-react';
2
2
  import { ButtonProps } from 'shim-antd';
3
+ import { DefaultTFuncReturn } from 'i18next';
3
4
  interface SubmitButtonProps extends ButtonProps {
4
- text?: string;
5
+ text?: string | DefaultTFuncReturn;
5
6
  className?: string;
6
7
  onClick?: any;
7
8
  disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.35",
3
+ "version": "4.5.36-cxmt.0",
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",