I'm facing the same problem right now. While using Constants, Authentication works fine but there is another the problem that make me switch to localStorage. The problem is when I logged in, other browsers also logged me in too. I've tried changing to localStorage and then there's this problem.