Local Storage is key-value storage where key is string and value is string also. You must stringify your data, you can do this localStorage.setItem('user', JSON.stringify(user)); And get it like const user = JSON.parse(localStorage.getItem('user'));