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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -