I have an application that in backend works with nodeJS , in the same control or well authenticate process, the problem I have in frontend , I use token to authenticate and in frontend I keep it in the LocalStorage...
I'm trying to implement the JSON TOKEN in node.js but I have this error:
[ERR_HTTP_HEADERS_SENT]: Can not set headers after they are sent to the client at ServerResponse.setHeader (_http_outgoing.js: 469: 11)
This is the code I have:...
Good I have an api made with express but I do not know how to save the token, any help?
Controller code that creates the token which works correctly:
function login(req, res) {
const {
name,
pass
} = req.bo...
good day I wanted to know if anyone knows of this error, I imagine that I'm missing some module that needs to be implemented but I did not find anything about this.
I am trying to implement the concept of JWT tokens for ionic 3.
ERROR Error...