awslabs / cognito-at-edge

Serverless authentication solution to protect your website or Amplify application
Apache License 2.0
168 stars 54 forks source link

Fix for double query params decoding #24

Closed akhudiakov97 closed 2 years ago

akhudiakov97 commented 2 years ago

*Issue #23

Removed the double decoding of the query params, on line 166 we already call querystring.parsemethod which does decoding by default according to Node Js doc, so there is no need to call decodeURIComponent on line 180.

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