use localStorage to save auth info