amazon-archives / aws-amplify-serverless-plugin

Plugin for the Serverless Framework to output AWS Amplify configuration files.
Apache License 2.0
124 stars 30 forks source link

ClientSecret is not output into aws-exports.js #41

Closed adrianhall closed 5 years ago

adrianhall commented 5 years ago

When there is an appclient secret, it is not generated in the aws-exports.js file.

Problem is likely here:

                if (appClient.metadata.UserPoolClient.hasOwnProperty('AppClientSecret')) {
                    config.aws_user_pools_web_client_secret = appClient.metadata.UserPoolClient.ClientSecret;
                }

The actual property is ClientSecret

adrianhall commented 5 years ago

The problem was that I was looking for AppClientSecret instead of ClientSecret.

Fixed in v1.2.2