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

Id of user can't be 0 for auth #116

Closed
saiichihashimoto opened this Issue Mar 23, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@saiichihashimoto
Copy link
Contributor

saiichihashimoto commented Mar 23, 2016

In the token service we have:

    const data = {
      id: user[options.idField] || user.id
    };

So if the id happens to be 0, then we fall back to the user.id, which is undefined. 0 is a valid value, but isn't accepted.

@ekryski ekryski closed this in 19b7a52 Mar 24, 2016

ekryski added a commit that referenced this issue Mar 24, 2016

@ekryski ekryski modified the milestone: 0.6 Mar 26, 2016

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.