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

fix typings for AccountsClientPassword #825

Closed

Conversation

NickBolles
Copy link
Contributor

Closes #818

@NickBolles
Copy link
Contributor Author

@pradel any idea why this is failing the checks? it says no linked package "@accounts/password"... shouldn't lerna be linking them all up correctly? build works locally for me

let hashedPassword = user.password;
if (typeof user.password === 'string') {
// mostly just a type check
hashedPassword = this.hashPassword(user.password);
Copy link

@ducan-ne ducan-ne Dec 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this line is necessary? server stil throw a error if user.password is number, booolean

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of the PR is to fix a possibly null error I believe. It's been a while. But if that's the case hashPassword typings should allow non-string inputs then, which seems a little more messy to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, so the point of this fix is to fix a typescript compile issue. Honestly this fix might not be needed. I forget why I was running into it. Maybe it was just a warning

@pradel
Copy link
Member

pradel commented Feb 14, 2020

Fixed by #893

@pradel pradel closed this Feb 14, 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

Successfully merging this pull request may close these issues.

Client-password typings incorrect
3 participants