我看到这个错误消息“无法获得/logout”的/logout URL,但从文档看来,该链接似乎应该自动注册为路由。我的代码目前是非常基本的,看起来如下:
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 and Express.");
});
app.on('stormpath.ready', function() {
console.log('Stormpath Ready!');
});
console.log("Web application opened.");
app.listen(port);任何帮助都是非常感谢的。
发布于 2016-04-19 15:04:59
快速风暴路径的注销路由需要一个POST请求。我们这样做是为了防止综合栏意外地将您从应用程序中注销。
https://stackoverflow.com/questions/36710640
复制相似问题