when set and get  json in localStorage will add this type 

 

var authToken = JSON.parse(localStorage.getItem("authenticationToken"));

 

localStorage.setItem("authenticationToken",JSON.stringify( token));