I want to store jwt token in localStorage and I send it back to the server with header in express,I work on Visual Studio and Chrome browser. Just for local storage, I saw these instructions written online to be able to store the token, but I didn't know where I would put it ? where can i store the token in local Storage , in any place ? ,must I write this Instructions in Chrom or Terminal or where ?
axios.post('http://yourendpoint',data,{ headers: {
Authorization:localStorage.getItem('jwtToken') } })
.then(response=> console.log(response))
.catch(error => console.log(error));
};
In short, I want to store the token, but I don't know where and How ?.