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.
- 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 --saveFeatures
- Simplified handling of requests and generating responses
- Full support for Echo cards
- Automatic generation of express objects for handling interactions between the user and the Echo device
- Automatic request verification (via the alexa-verifier module)
- Modular system of creating alexa skills
- Easily host multiple skills without any conflict
- Apps can be tested without running a server
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.
