Skip to content

Commit

Permalink
Revert "fix(liveness): add custom signer to client (#5063) (#5073)" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hbuchel authored Mar 15, 2024
1 parent d21c06a commit ec8a9f9
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 440 deletions.
5 changes: 0 additions & 5 deletions .changeset/ten-jobs-eat.md

This file was deleted.

8 changes: 4 additions & 4 deletions packages/react-liveness/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const config: Config = {
],
coverageThreshold: {
global: {
branches: 82,
functions: 82,
lines: 91,
statements: 91,
branches: 81,
functions: 81,
lines: 90,
statements: 90,
},
},
testPathIgnorePatterns: [],
Expand Down
3 changes: 1 addition & 2 deletions packages/react-liveness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"@smithy/eventstream-serde-browser": "^2.0.4",
"@smithy/fetch-http-handler": "^2.1.3",
"@smithy/protocol-http": "^3.0.3",
"@smithy/signature-v4": "2.1.4",
"@mediapipe/face_detection": "~0.4.0",
"@tensorflow-models/face-detection": "1.0.2",
"@tensorflow/tfjs-backend-cpu": "4.11.0",
Expand All @@ -81,7 +80,7 @@
"name": "FaceLivenessDetector",
"path": "dist/esm/index.mjs",
"import": "{ FaceLivenessDetector }",
"limit": "280 kB"
"limit": "275 kB"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import { CredentialsAndIdentityId } from 'aws-amplify/auth';

export type AwsCredentials = CredentialsAndIdentityId['credentials'];
/**
* These types are copied over / adapted from the aws-sdk/types package as they do not semantic versioning and we do not want these changing unexpectedly.
* When Amplify Auth exports these types this file should be removed and the type definitions should come from the Amplify auth package
*/

export interface IdentityProvider<IdentityT extends AwsCredentials> {
(identityProperties?: Record<string, any>): Promise<IdentityT>;
export interface AwsCredentials {
readonly accessKeyId: string;
readonly secretAccessKey: string;
}

/**
* @deprecated `AwsTemporaryCredentials` has been replaced with `AwsCredentials`.
*
* The `AwsTemporaryCredentials` type may be removed in a future major version of _@aws-amplify/ui-react-liveness_.
*/
export interface AwsTemporaryCredentials extends AwsCredentials {
readonly sessionToken?: string;
readonly expiration?: Date;
}

export type AwsCredentialProvider = IdentityProvider<AwsCredentials>;
export interface IdentityProvider<IdentityT extends AwsTemporaryCredentials> {
(identityProperties?: Record<string, any>): Promise<IdentityT>;
}

export type AwsCredentialProvider = IdentityProvider<AwsTemporaryCredentials>;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
RequestHandler,
RequestHandlerMetadata,
} from '@smithy/types';
import { WS_CLOSURE_CODE } from '../constants';
import { WS_CLOSURE_CODE } from './constants';

const DEFAULT_WS_CONNECTION_TIMEOUT_MS = 2000;

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit ec8a9f9

Please sign in to comment.