Skip to content

Commit

Permalink
fix: Lambda auth config value (#12922)
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev authored Jan 29, 2024
1 parent b473532 commit b728a72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/parseAWSExports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ const authTypeMapping: Record<any, any> = {
AMAZON_COGNITO_USER_POOLS: 'userPool',
OPENID_CONNECT: 'oidc',
NONE: 'none',
AWS_LAMBDA: 'lambda',
// `LAMBDA` is an incorrect value that was added during the v6 rewrite.
// Keeping it as a valid value until v7 to prevent breaking customers who might
// be relying on it as a workaround.
// ref: https://github.com/aws-amplify/amplify-js/pull/12922
// TODO: @v7 remove next line
LAMBDA: 'lambda',
};

Expand Down

0 comments on commit b728a72

Please sign in to comment.