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

Authentication local strategy not working with a Custom User service #672

Closed
LetsDoIt- opened this issue Apr 28, 2018 · 1 comment
Closed

Comments

@LetsDoIt-
Copy link

I am using a custom service to manage users and when i try to authenticate using email password it gives an error : a record with email of 'sgd@sgd100.com' did not exist and Invalid login error

But when i changed to in-memory user service it works like a charm.

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): Feathers Auth 2.1.5

NodeJS version: 8.7.0

Operating System: Mac OS X

Browser Version:

React Native Version:

Module Loader:

@daffl
Copy link
Member

daffl commented Apr 28, 2018

At the moment a custom users service has to support

  • An id property which contains the name of the id field
  • Support a find method with params.query = { email } (email or usernameField ) to find the user/entity by the field name. It will work with or without pagination (either an array or an object with data in the array)

@daffl daffl closed this as completed Apr 30, 2018
# 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