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

No record found for id... when authenticating #378

Closed
jd1378 opened this issue May 15, 2020 · 2 comments
Closed

No record found for id... when authenticating #378

jd1378 opened this issue May 15, 2020 · 2 comments

Comments

@jd1378
Copy link

jd1378 commented May 15, 2020

I think this is the same issue as feathersjs/feathers#1660
which was fixed in feathersjs-ecosystem/feathers-mongodb#171
but that's for mongodb, I guess It's not fixed in mongoose ?
I can see the id as string (it is not null) when trying to authenticate
though I'm not able to reproduce with fresh generated app
any idea ?

@jd1378
Copy link
Author

jd1378 commented May 15, 2020

I think I got why
It's caused by setField hook, for limiting the user to access It's own data only
but when used , param id is not changed to object id any more

@jd1378
Copy link
Author

jd1378 commented May 15, 2020

It seems it works just fine, The docs of feathers-authentication-hooks had clearly said to use _id, but I was only using in from and not in as. closing the issue as it seems there's no problem.

@jd1378 jd1378 closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant