我的问题是: 1.如何将令牌发送到客户端,以便将其保存在客户端。2.当客户端尝试访问路由时,如何返回令牌?我需要了解在不使用postman的情况下这是如何发生的。我相信这很简单。我是不是直接发送
`res.header('Authorization', 'Bearer' + tokenidentify the user by the id and the id
我试着把一些数据保存到mongodb。在我的控制器中,当我试图保存数据时,它并没有在控制器日志函数中给出任何响应。在保存方法控制台日志之后,它会给出响应。MongoClient.connect('mongodb://localhost:27017/notification', function (err, db) {controller.js
var mongoose
platform=android&dev=true&hot=false&minify=false:126633:27 in <unknown>at node_modules/tslib/tslib.js:18:0 in <global>
at http://192.168.1.2:19000/node_modules