Closed parkan closed 3 years ago
fixed a few typos in the above, my keyboard is really about to give up the ghost, thank god I'm not coding in plain js or the typos would eat me alive
Thanks! I did some additional changes (adding the change to the example file which is covered by integration tests to make sure it works and changing commit message/changelog).
Adding this in reference to the related issue on the non-lambda version of the jwt middleware, hope that's ok!
isPayload
is required. The invocation without it will not type check if AuthorizedEvent is parametrized with a TokenPayload, even if that type is emptyevent
can be accessed, given that AuthorizedEvent does not extend APIGatewayEvent (ordering APIGatewayEvent before AuthorizedEvent so that any members that override a previous definition would appear as such in the middleware chain -- that doesn't happen now, but it seems like a good practice for e.g. body parser)Closes #
Checklist: