Guardar token en LocalStorage

window.localStorage.setItem(key, value);
window.localStorage.getItem(key);
Troubled Tiger