AuthMode in Amplify Config is incorrect when using old Amplify config format (--config-version 0
)
#1547
Labels
amplify_outputs
Issue related to generating amplify_outputs for deployed backends
bug
Something isn't working
p2
Environment information
Description
Steps to reproduce:
flutter create my_amplify_app
) but I think this is likely reproducible on all platformsnpm create amplify@latest
to create the backendnpx ampx sandbox --outputs-format dart --outputs-out-dir lib
lib/amplify_outputs.dart
contains the following under "data" for auth modes. Observe thatauthorization_types
contains "AMAZON_COGNITO_USER_POOLS"npx ampx sandbox --outputs-format dart --outputs-out-dir lib --config-version 0
lib/amplifyconfiguration.dart
contains the following under "AppSync". Observe thatdata_AMAZON_COGNITO_USER_POOLS.AuthMode
is "AWS_IAM". "AMAZON_COGNITO_USER_POOLS" is not listed as an auth mode.Expected behavior: Both config formats should contain an auth mode of "AMAZON_COGNITO_USER_POOLS".
Actual behavior: "AMAZON_COGNITO_USER_POOLS" is only listed as an auth mode when using the new config.
The text was updated successfully, but these errors were encountered: