@authing/guard-shim-react 4.5.47-bg.4 → 4.5.47-bg.40

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.
@@ -71,7 +71,7 @@ export declare const AssociateFace: (content: AssociateFaceContent) => Promise<A
71
71
  export declare const GetFaceLivenessSession: (content: GetFaceLivenessSessionContent) => Promise<AuthingGuardResponse<any>>;
72
72
  /**
73
73
  * 获取 AWS 活体检测结果
74
- * GET /api/v2/mfa/face/liveness/result?sessionId=xxx
74
+ * POST /api/v2/mfa/face/liveness/result
75
75
  */
76
76
  export declare const GetFaceLivenessResult: (content: GetFaceLivenessResultContent) => Promise<AuthingGuardResponse<any>>;
77
77
  /**
@@ -3,12 +3,16 @@ import '@aws-amplify/ui-react/styles.css';
3
3
  interface AwsFaceLivenessDetectorProps {
4
4
  sessionId: string;
5
5
  region?: string;
6
- onAnalysisComplete?: () => void | Promise<void>;
6
+ onAnalysisComplete?: (completeInfo?: any) => void | Promise<void>;
7
7
  onError?: (error: any) => void;
8
+ credentials?: {
9
+ accessKeyId: string;
10
+ secretAccessKey: string;
11
+ sessionToken: string;
12
+ };
8
13
  }
9
14
  /**
10
15
  * AWS Face Liveness 检测组件
11
- * 使用 Cognito 获取临时 AWS 凭证,避免在前端暴露永久凭证
12
16
  */
13
17
  export declare const AwsFaceLivenessDetector: React.FC<AwsFaceLivenessDetectorProps>;
14
18
  export default AwsFaceLivenessDetector;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.47-bg.4",
3
+ "version": "4.5.47-bg.40",
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",