Package Exports
- alexa-verifier-middleware
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (alexa-verifier-middleware) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
alexa-verifier-middleware
A simple middleware wrapper for express via the alexa-verifier node module.
Why
- The alexa-verifier module did exist, but there was still quite a bit of code to write in order to make it work. Click here to see why.
- I've recently been having problems with Heroku's SSL certificates, mainly a false alarm concerning a time expiry problem.I kept on getting this error:
error validating the alexa cert: certificate expiration check failed. However, when I tried verifying the expiry date for the certificate online on SSL Shopper (example is here), the certificate was perfectly fine. I developed this module mainly to give an option to bypass the time expiry check temporarily, until it's fixed. If you happen to be using Heroku and have been receiving this error like how I did, then this module is for you.
Installation
npm install alexa-verifier-middleware --saveMentions
- mreinstein for his alexa-verifier module, which allows you to verify any Amazon requests from any web service
Code Example
var avm = require('alexa-verifier-middleware');
...
var app = express();
app.use(avm(false));API Reference
avm(boolean overideTimeExpireCheck)
The main part of this module in which you use as middleware for express. The overideTimeExpireCheck is to bypass this error: error validating the alexa cert: certificate expiration check failed temporarily.
