From 3c9f548b6f5330388d4ecaf783ad0744fa808e6e Mon Sep 17 00:00:00 2001 From: Pavel Lazar Date: Tue, 27 Jul 2021 12:05:36 -0400 Subject: [PATCH] fix(amplify-category-auth): add auth user selections to config files --- .../amplify-frontend-android/lib/frontend-config-creator.js | 2 +- .../amplify-frontend-flutter/lib/frontend-config-creator.js | 2 +- packages/amplify-frontend-ios/lib/frontend-config-creator.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/amplify-frontend-android/lib/frontend-config-creator.js b/packages/amplify-frontend-android/lib/frontend-config-creator.js index 00f398c5cd2..dc224998f76 100644 --- a/packages/amplify-frontend-android/lib/frontend-config-creator.js +++ b/packages/amplify-frontend-android/lib/frontend-config-creator.js @@ -264,7 +264,7 @@ function getCognitoConfig(cognitoResources, projectRegion) { }; } - Object.assign(cognitoConfig, cognitoResource.frontEndConfig); + Object.assign(cognitoConfig.Auth.Default, cognitoResource.frontEndConfig); return cognitoConfig; } diff --git a/packages/amplify-frontend-flutter/lib/frontend-config-creator.js b/packages/amplify-frontend-flutter/lib/frontend-config-creator.js index 331eab6348f..e28c2b735d5 100644 --- a/packages/amplify-frontend-flutter/lib/frontend-config-creator.js +++ b/packages/amplify-frontend-flutter/lib/frontend-config-creator.js @@ -241,7 +241,7 @@ function getCognitoConfig(cognitoResources, projectRegion) { }; } - Object.assign(cognitoConfig, cognitoResource.frontEndConfig); + Object.assign(cognitoConfig.Auth.Default, cognitoResource.frontEndConfig); return cognitoConfig; } diff --git a/packages/amplify-frontend-ios/lib/frontend-config-creator.js b/packages/amplify-frontend-ios/lib/frontend-config-creator.js index f070e4d7975..ff54a3174ce 100644 --- a/packages/amplify-frontend-ios/lib/frontend-config-creator.js +++ b/packages/amplify-frontend-ios/lib/frontend-config-creator.js @@ -246,7 +246,7 @@ function getCognitoConfig(cognitoResources, projectRegion) { }; } - Object.assign(cognitoConfig, cognitoResource.frontEndConfig); + Object.assign(cognitoConfig.Auth.Default, cognitoResource.frontEndConfig); return cognitoConfig; }