salvar token no localStorage

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