UNPKG

@aws-amplify/auth

Version:
20 lines (17 loc) 949 B
import { defaultStorage } from '@aws-amplify/core'; import { DefaultIdentityIdStore } from './IdentityIdStore.mjs'; import { CognitoAWSCredentialsAndIdentityIdProvider } from './credentialsProvider.mjs'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /** * Cognito specific implmentation of the CredentialsProvider interface * that manages setting and getting of AWS Credentials. * * @throws configuration expections: `InvalidIdentityPoolIdException` * - Auth errors that may arise from misconfiguration. * @throws service expections: {@link GetCredentialsForIdentityException}, {@link GetIdException} * */ const cognitoCredentialsProvider = new CognitoAWSCredentialsAndIdentityIdProvider(new DefaultIdentityIdStore(defaultStorage)); export { CognitoAWSCredentialsAndIdentityIdProvider, DefaultIdentityIdStore, cognitoCredentialsProvider }; //# sourceMappingURL=index.mjs.map