Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Commit

Permalink
Added authorizer information to data
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuga committed May 3, 2017
1 parent b5cb831 commit aa3a545
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ function R(...params) {
.then(usedSettings.validate)
.then((transformedData) => {
transformed = transformedData;
return handler(transformedData);
return handler(Object.assign({}, transformedData, {
authorizer: event.requestContext && event.requestContext.authorizer,
}));
})
.then((response) => {
callback(null, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-response",
"version": "1.1.0",
"version": "1.2.0",
"description": "Aws response handler",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit aa3a545

Please sign in to comment.