-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
15 changed files
with
53 additions
and
440 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 12 additions & 11 deletions
23
packages/react-liveness/src/components/FaceLivenessDetector/service/types/credentials.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
26 changes: 0 additions & 26 deletions
26
...iveness/src/components/FaceLivenessDetector/service/utils/createStreamingClient/Signer.ts
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
...ponents/FaceLivenessDetector/service/utils/createStreamingClient/__tests__/Signer.test.ts
This file was deleted.
Oops, something went wrong.
99 changes: 0 additions & 99 deletions
99
...enessDetector/service/utils/createStreamingClient/__tests__/createStreamingClient.test.ts
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
...LivenessDetector/service/utils/createStreamingClient/__tests__/resolveCredentials.test.ts
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
...ponents/FaceLivenessDetector/service/utils/createStreamingClient/createStreamingClient.ts
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...liveness/src/components/FaceLivenessDetector/service/utils/createStreamingClient/index.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.