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

Login API: bcrypt nên dùng dưới dạng async #32

Open
dothanhlam97 opened this issue Dec 3, 2020 · 0 comments
Open

Login API: bcrypt nên dùng dưới dạng async #32

dothanhlam97 opened this issue Dec 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@dothanhlam97
Copy link
Collaborator

npmjs.com/package/bcrypt#why-is-async-mode-recommended-over-sync-mode

Theo a Nhân đã suggest: bcrypt nên dùng dưới dạng async để ko bị blocking node process nha, tương tự với hash và gensalt

Code pointer:
File: https://github.com/fc5y/user-backend/blob/master/controller/auth.js
Function: login

image

@dothanhlam97 dothanhlam97 changed the title bcrypt nên dùng dưới dạng async Login API: bcrypt nên dùng dưới dạng async Dec 3, 2020
@houtaru houtaru added the enhancement New feature or request label Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants