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

Login not working #24

Closed
tudurom opened this Issue Jan 16, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@tudurom
Copy link

tudurom commented Jan 16, 2016

Using the example on the README page it gives me the following error when I try to log in:

TypeError: Cannot read property 'token' of undefined
   at verifyToken (/home/tudurom/squirrel/squirrel.server/node_modules/feathers-authentication/lib/index.js:166:17)
@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jan 16, 2016

It looks like your request is missing a body, or it might be due to the missing .use(bodyParser.json()) just before the .use(bodyParser.urlencoded({ extended: true })) in the server setup.

I'm updating the README.md right now. I'll let you know when it's done.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jan 16, 2016

I've updated the README with a short tutorial on getting up and running. Let me know if you run in to anything else. Thanks for your feedback.

@tudurom

This comment has been minimized.

Copy link
Author

tudurom commented Jan 16, 2016

It works! Thank you very much! The problem was I was loading the modules in a random order.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jan 16, 2016

You are welcome. Have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.