mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
.. | ||
httpsAsync.js | ||
index.js | ||
myLogger.js | ||
package.json | ||
README.md | ||
tokenDecoder.js | ||
tokenExtractor.js |
Context
This is a lambda function I wrote that is behind an API gateway. The URL to invoke the lambda is passed to my Hasura instance and the POST method is specified.
This is tested and works. I also pass the encoded JWT from my clients like this
Authorization: Bearer <JWT>
The code has a lot of comments and links.
Deploy
To deploy you will have to add your custom code to populate the headers. Just like the other boiler plates.
Here is a link to deploy an NPM package to lambda.