Users unable to login


We’re on Meteor and recently we’ve been having issues with users not being able to login. This is only happening in production and I’ve never seen it happen locally.

After doing some checks with the Meteor Chrome extension I see that the user is able to login server side and the server sends the token back to the client. The problem is that the client does not put this information in localstorage and running Accounts.loggingIn() in the Chrome console returns true forever.

We use UserAccounts for login:

Upon clicking log in the buttons just go gray and stay gray.

This package hasn’t been updated in 2 years however.

Anyone have any idea what is going on or how to fix?


Upon further investigation I see that my issue is with Meteor itself. Running:

Meteor.loginWithPassword({email: ''}, 'password', function(error,res) { error ? console.error(error) : console.log(res) })

I don’t get anything logged to the console, but using Meteor Chrome extension I see that my token was returned from the server.

The problem sometimes goes away when I redeploy the server. I haven’t found a way to consistently reproduce this issue, but it is a real issue affecting users in production and I would love to find a fix for it.