@aws-amplify/core 6.0.1-unstable.20e9a79.0 → 6.0.1-unstable.588b76b.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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@aws-amplify/core/internals/aws-clients/cognitoIdentity",
3
+ "types": "../../../lib-esm/awsClients/cognitoIdentity/index.d.ts",
4
+ "main": "../../../lib/awsClients/cognitoIdentity/index.js",
5
+ "module": "../../../lib-esm/awsClients/cognitoIdentity/index.js",
6
+ "react-native": "../../../lib-esm/awsClients/cognitoIdentity/index.js",
7
+ "sideEffects": false
8
+ }
@@ -1 +1 @@
1
- export declare const version = "6.0.1-unstable.20e9a79.0+20e9a79";
1
+ export declare const version = "6.0.1-unstable.588b76b.0+588b76b";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // generated by genversion
5
- exports.version = '6.0.1-unstable.20e9a79.0+20e9a79';
5
+ exports.version = '6.0.1-unstable.588b76b.0+588b76b';
@@ -2,6 +2,7 @@ import { AssertionFunction } from '../../../types';
2
2
  export declare enum AuthConfigurationErrorCode {
3
3
  AuthTokenConfigException = "AuthTokenConfigException",
4
4
  AuthUserPoolAndIdentityPoolException = "AuthUserPoolAndIdentityPoolException",
5
+ AuthUserPoolException = "AuthUserPoolException",
5
6
  InvalidIdentityPoolIdException = "InvalidIdentityPoolIdException",
6
7
  OAuthNotConfigureException = "OAuthNotConfigureException"
7
8
  }
@@ -8,6 +8,7 @@ var AuthConfigurationErrorCode;
8
8
  (function (AuthConfigurationErrorCode) {
9
9
  AuthConfigurationErrorCode["AuthTokenConfigException"] = "AuthTokenConfigException";
10
10
  AuthConfigurationErrorCode["AuthUserPoolAndIdentityPoolException"] = "AuthUserPoolAndIdentityPoolException";
11
+ AuthConfigurationErrorCode["AuthUserPoolException"] = "AuthUserPoolException";
11
12
  AuthConfigurationErrorCode["InvalidIdentityPoolIdException"] = "InvalidIdentityPoolIdException";
12
13
  AuthConfigurationErrorCode["OAuthNotConfigureException"] = "OAuthNotConfigureException";
13
14
  })(AuthConfigurationErrorCode = exports.AuthConfigurationErrorCode || (exports.AuthConfigurationErrorCode = {}));
@@ -20,6 +21,10 @@ const authConfigurationErrorMap = {
20
21
  message: 'Auth UserPool or IdentityPool not configured.',
21
22
  recoverySuggestion: 'Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId.',
22
23
  },
24
+ [AuthConfigurationErrorCode.AuthUserPoolException]: {
25
+ message: 'Auth UserPool not configured.',
26
+ recoverySuggestion: 'Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId.',
27
+ },
23
28
  [AuthConfigurationErrorCode.InvalidIdentityPoolIdException]: {
24
29
  message: 'Invalid identity pool id provided.',
25
30
  recoverySuggestion: 'Make sure a valid identityPoolId is given in the config.',
@@ -14,7 +14,7 @@ function assertTokenProviderConfig(cognitoConfig) {
14
14
  assertionValid =
15
15
  !!cognitoConfig.userPoolId && !!cognitoConfig.userPoolClientId;
16
16
  }
17
- return (0, errorHelpers_1.assert)(assertionValid, errorHelpers_1.AuthConfigurationErrorCode.AuthTokenConfigException);
17
+ return (0, errorHelpers_1.assert)(assertionValid, errorHelpers_1.AuthConfigurationErrorCode.AuthUserPoolException);
18
18
  }
19
19
  exports.assertTokenProviderConfig = assertTokenProviderConfig;
20
20
  function assertOAuthConfig(cognitoConfig) {