Skip to content

fix(gen2-migration): update category initializer to take specific auth modes in api init#14736

Merged
sanjanaravikumar-az merged 2 commits intogen2-migrationfrom
sanjrkmr/e2e-category-initializer-update
Apr 1, 2026
Merged

fix(gen2-migration): update category initializer to take specific auth modes in api init#14736
sanjanaravikumar-az merged 2 commits intogen2-migrationfrom
sanjrkmr/e2e-category-initializer-update

Conversation

@sanjanaravikumar-az
Copy link
Copy Markdown
Contributor

Refactors GraphQL API auth mode initialization in category-initializer.ts to build authTypesConfig in the order specified by migration-config.json's authModes array. Previously, auth modes were added in a hardcoded order with a separate addApiWithBlankSchema fallback for the no-auth case. Now the first entry in authModes becomes the default auth mode (since addApi uses the first key as default), with a fallback to API key if no modes are configured. Removes the unused addApiWithBlankSchema import.

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

@sanjanaravikumar-az sanjanaravikumar-az requested a review from a team as a code owner April 1, 2026 18:21
@sanjanaravikumar-az sanjanaravikumar-az enabled auto-merge (squash) April 1, 2026 18:21
Comment thread packages/amplify-gen2-migration-e2e-system/src/core/category-initializer.ts Outdated
@sanjanaravikumar-az sanjanaravikumar-az merged commit a0672d0 into gen2-migration Apr 1, 2026
4 checks passed
@sanjanaravikumar-az sanjanaravikumar-az deleted the sanjrkmr/e2e-category-initializer-update branch April 1, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants