@aws-amplify/core 6.0.1-api-v6-models.cfd348e.0 → 6.0.1-api-v6-models.e8fc3ba.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "6.0.1-api-v6-models.cfd348e.0+cfd348e",
3
+ "version": "6.0.1-api-v6-models.e8fc3ba.0+e8fc3ba",
4
4
  "description": "Core category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -65,7 +65,7 @@
65
65
  "uuid": "^9.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@aws-amplify/react-native": "1.0.1-api-v6-models.cfd348e.0+cfd348e",
68
+ "@aws-amplify/react-native": "1.0.1-api-v6-models.e8fc3ba.0+e8fc3ba",
69
69
  "@types/js-cookie": "3.0.2",
70
70
  "genversion": "^2.2.0",
71
71
  "typescript": "5.0.2"
@@ -156,5 +156,5 @@
156
156
  "lib-esm"
157
157
  ]
158
158
  },
159
- "gitHead": "cfd348e6067d59551a617b200afbd2824b82daf7"
159
+ "gitHead": "e8fc3ba880c70b8ba4f2ccdfb1d99ed7268a5d29"
160
160
  }
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '6.0.1-api-v6-models.cfd348e.0+cfd348e';
2
+ export const version = '6.0.1-api-v6-models.e8fc3ba.0+e8fc3ba';
@@ -7,6 +7,7 @@ import { AmplifyErrorMap, AssertionFunction } from '../../../types';
7
7
  export enum AuthConfigurationErrorCode {
8
8
  AuthTokenConfigException = 'AuthTokenConfigException',
9
9
  AuthUserPoolAndIdentityPoolException = 'AuthUserPoolAndIdentityPoolException',
10
+ AuthUserPoolException = 'AuthUserPoolException',
10
11
  InvalidIdentityPoolIdException = 'InvalidIdentityPoolIdException',
11
12
  OAuthNotConfigureException = 'OAuthNotConfigureException',
12
13
  }
@@ -21,6 +22,11 @@ const authConfigurationErrorMap: AmplifyErrorMap<AuthConfigurationErrorCode> = {
21
22
  recoverySuggestion:
22
23
  'Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId.',
23
24
  },
25
+ [AuthConfigurationErrorCode.AuthUserPoolException]: {
26
+ message: 'Auth UserPool not configured.',
27
+ recoverySuggestion:
28
+ 'Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId.',
29
+ },
24
30
  [AuthConfigurationErrorCode.InvalidIdentityPoolIdException]: {
25
31
  message: 'Invalid identity pool id provided.',
26
32
  recoverySuggestion:
@@ -33,7 +33,7 @@ export function assertTokenProviderConfig(
33
33
 
34
34
  return assert(
35
35
  assertionValid,
36
- AuthConfigurationErrorCode.AuthTokenConfigException
36
+ AuthConfigurationErrorCode.AuthUserPoolException
37
37
  );
38
38
  }
39
39