localstorage is saving token as object code example
Example: save token in localstorage
window.localStorage.setItem(key, value);
window.localStorage.getItem(key);
window.localStorage.setItem(key, value);
window.localStorage.getItem(key);