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

Error options.service does not exist after initial auth setup #535

Closed
franzherzog opened this Issue Jun 25, 2017 · 5 comments

Comments

Projects
None yet
2 participants
@franzherzog
Copy link

franzherzog commented Jun 25, 2017

Steps to reproduce

  • feathers generate authentication
  • select Username + Password (Local)
  • use a name different than the default "users"
  • proceed with generator

after finish

  • npm start
    throws error:
    options.service does not exist

workaround

  • open /path/to/project/config/default.json
  • change service name manual

{
...
"authentication": {
....
"local": {
"entity": "user",
"service": "users", <<<<<<<<<<<<<<<<<<< change to whatever your service is called
"usernameField": "email",
"passwordField": "password"
},
.....
"nedb": "../data"
}

System configuration

Linux Node v6.9
"feathers-authentication": "^1.2.6",
"feathers-authentication-hooks": "^0.1.4",
"feathers-authentication-jwt": "^0.3.1",
"feathers-authentication-local": "^0.4.3",

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jun 26, 2017

Does the generator still create a /users service?

@franzherzog

This comment has been minimized.

Copy link
Author

franzherzog commented Jun 26, 2017

@franzherzog

This comment has been minimized.

Copy link
Author

franzherzog commented Jun 26, 2017

edit: yes the service for authentication is created but its not called the "/user" service any more because we changed the default name in the generator.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jun 26, 2017

I see. I'm going to move this to the generator-feathers repo, so we can get the generator fixed.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jun 26, 2017

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.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.