-
Notifications
You must be signed in to change notification settings - Fork 118
Auth doesn't work with non default local.userEndpoint #159
Comments
@juodumas you need to specify your app.configure(authentication({
idField: 'id',
userEndpoint: '/api/users'
} You can find all the config options here: http://docs.feathersjs.com/authentication/readme.html. Also make sure you are using v0.7 as some of those options had changed from v0.5. |
No, that's not it. Just try setting up feathers-nedb auth with any custom userEndpoint. |
@juodumas ok well if you are using nedb then your |
I think in order to help out I'd need to see more code. If you want to fire a link to the app or add a gist that would be great. |
The key was putting Would it be possible for feathers to be more verbose about such errors to help later newcomers like me? Right now when I incorrectly set
Thanks for the replies. |
Auth doesn't work when using a custom userEndpoint (
app.configure(authentication({local: {userEndpoint: '/api/users'}}))
). Confirmed in 2 cases:idField
on feather-memory serviceapp.use('users', nedbService({Model: db}))
)A gist with feathers-memory: https://gist.github.com/juodumas/67793c57ebbbde0e5e606b43675dea5e
When using feathers-rest, server log shows:
When using sockets,
app.authenticate()
is rejected and returns the hook object.The text was updated successfully, but these errors were encountered: