Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Login not working #24

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

Login not working #24

tudurom opened this issue Jan 16, 2016 · 4 comments

Comments

@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
Copy link
Member

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
Copy link
Member

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
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
Copy link
Member

You are welcome. Have fun!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants