express - stormpath logout URL route not working -
i see error message "cannot /logout" /logout url, docs seems link should automatically registered route. code basic @ moment, looks like:
var express = require("express"); var stormpath = require('express-stormpath'); var app = express(); var port = 1337; app.use(stormpath.init(app, { apikey: { id: '<>', secret: '<>' }, application: { href: "<>" }, website: true })); app.get("/", stormpath.loginrequired, function(req, res) { res.send("hello node.js , express."); }); app.on('stormpath.ready', function() { console.log('stormpath ready!'); }); console.log("web application opened."); app.listen(port);
any appreciated.
the logout route express-stormpath requires post request. prevent omnibar accidentally logging out application.
Comments
Post a Comment