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

bearer strategy with client Id calling wrong function #5

Open
jcyh0120 opened this issue Jan 18, 2017 · 1 comment
Open

bearer strategy with client Id calling wrong function #5

jcyh0120 opened this issue Jan 18, 2017 · 1 comment

Comments

@jcyh0120
Copy link

I accidentally miss saving my user.id, so the clientID is used for BearerStrategy and found this bug.
I think in auth.js line 100
db.clients.findByClientId
should be change with
db.clients.find

@gerges-beshay
Copy link
Contributor

The "id" stored in the token is the "client.clientId" not "client.id", that's why "db.clients.findByClientId" is used and not "db.clients.find" (now renamed to "db.clients.findById").

What is the issue you are having?

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

2 participants