aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.36k stars 2.1k forks source link

fix(core): Always set login methods when parsing Gen2 config files #13315

Closed jimblanc closed 2 weeks ago

jimblanc commented 2 weeks ago

Description of changes

This change addresses a discrepancy when parsing Gen2 configuration files relative to Gen1. With this change, supported login attributes will always be set when parsing Gen2 configuration files when username_attributes is present in the config file. Before this change, login attributes may be undefined if that particular attribute was not present in the configuration file.

Issue #, if available

Description of how you validated changes

Local testing

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.