Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot login outside Meteor, no Meteor connection.httpHeaders #120

Open
alxmhe opened this issue Jun 26, 2019 · 0 comments
Open

Cannot login outside Meteor, no Meteor connection.httpHeaders #120

alxmhe opened this issue Jun 26, 2019 · 0 comments
Labels

Comments

@alxmhe
Copy link

alxmhe commented Jun 26, 2019

When connecting outside Meteor, the connection.httpHeaders array is empty.
https://docs.meteor.com/api/connections.html#Meteor-onConnection

The app crashes when trying to access user-agent.
https://github.com/mizzao/meteor-user-status/blob/b628f79d79077323dd16f4056bc7c66299ebee30/status.coffee#L137

Exception in onLogin callback: TypeError: Cannot read property 'user-agent' of undefined
at loginSession (packages/mizzao_user-status/status.coffee:137:16)
at packages/mizzao_user-status/status.coffee:204:3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants