@aws-amplify/core 6.0.17 → 6.0.18-unstable.b758843.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.
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.version = void 0;
5
5
  // generated by genversion
6
- exports.version = '6.0.17';
6
+ exports.version = '6.0.18-unstable.b758843.0+b758843';
7
7
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.17';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,QAAQ;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.18-unstable.b758843.0+b758843';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,mCAAmC;;"}
@@ -1 +1 @@
1
- export declare const version = "6.0.17";
1
+ export declare const version = "6.0.18-unstable.b758843.0+b758843";
@@ -1,5 +1,5 @@
1
1
  // generated by genversion
2
- const version = '6.0.17';
2
+ const version = '6.0.18-unstable.b758843.0+b758843';
3
3
 
4
4
  export { version };
5
5
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.17';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.18-unstable.b758843.0+b758843';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
@@ -51,6 +51,11 @@ export interface FetchAuthSessionOptions {
51
51
  export interface AuthTokens {
52
52
  idToken?: JWT;
53
53
  accessToken: JWT;
54
+ /**
55
+ * @deprecated
56
+ * Use getCurrentUser to access signInDetails
57
+ */
58
+ signInDetails?: AWSAuthSignInDetails;
54
59
  }
55
60
  export type AuthStandardAttributeKey = 'address' | 'birthdate' | 'email_verified' | 'family_name' | 'gender' | 'given_name' | 'locale' | 'middle_name' | 'name' | 'nickname' | 'phone_number_verified' | 'picture' | 'preferred_username' | 'profile' | 'sub' | 'updated_at' | 'website' | 'zoneinfo' | AuthVerifiableAttributeKey;
56
61
  export type LegacyUserAttributeKey = Uppercase<AuthStandardAttributeKey>;
@@ -156,4 +161,15 @@ export interface AWSCredentials {
156
161
  sessionToken?: string;
157
162
  expiration?: Date;
158
163
  }
164
+ /**
165
+ * @deprecated
166
+ */
167
+ interface AWSAuthSignInDetails {
168
+ loginId?: string;
169
+ authFlowType?: AuthFlowType;
170
+ }
171
+ /**
172
+ * @deprecated
173
+ */
174
+ type AuthFlowType = 'USER_SRP_AUTH' | 'CUSTOM_WITH_SRP' | 'CUSTOM_WITHOUT_SRP' | 'USER_PASSWORD_AUTH';
159
175
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "6.0.17",
3
+ "version": "6.0.18-unstable.b758843.0+b758843",
4
4
  "description": "Core category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^9.0.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-amplify/react-native": "1.0.17",
63
+ "@aws-amplify/react-native": "1.0.18-unstable.b758843.0+b758843",
64
64
  "@types/js-cookie": "3.0.2",
65
65
  "genversion": "^2.2.0",
66
66
  "typescript": "5.0.2"
@@ -192,5 +192,5 @@
192
192
  ]
193
193
  }
194
194
  },
195
- "gitHead": "c54a19c8a654a47d559cb0fd41c74bd2c3eb79ca"
195
+ "gitHead": "b758843635c9abeb6348723e48852c3a58af569e"
196
196
  }
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '6.0.17';
2
+ export const version = '6.0.18-unstable.b758843.0+b758843';
@@ -74,6 +74,11 @@ export interface FetchAuthSessionOptions {
74
74
  export interface AuthTokens {
75
75
  idToken?: JWT;
76
76
  accessToken: JWT;
77
+ /**
78
+ * @deprecated
79
+ * Use getCurrentUser to access signInDetails
80
+ */
81
+ signInDetails?: AWSAuthSignInDetails;
77
82
  }
78
83
 
79
84
  export type AuthStandardAttributeKey =
@@ -238,3 +243,22 @@ export interface AWSCredentials {
238
243
  sessionToken?: string;
239
244
  expiration?: Date;
240
245
  }
246
+
247
+ // copied from packages/auth/src/providers/cognito/types/models.ts#L94
248
+ /**
249
+ * @deprecated
250
+ */
251
+ interface AWSAuthSignInDetails {
252
+ loginId?: string;
253
+ authFlowType?: AuthFlowType;
254
+ }
255
+
256
+ // copied from packages/auth/src/providers/cognito/types/models.ts#L22
257
+ /**
258
+ * @deprecated
259
+ */
260
+ type AuthFlowType =
261
+ | 'USER_SRP_AUTH'
262
+ | 'CUSTOM_WITH_SRP'
263
+ | 'CUSTOM_WITHOUT_SRP'
264
+ | 'USER_PASSWORD_AUTH';