feat: return Promise<string?

This commit is contained in:
karishmas6
2024-09-25 18:43:43 +05:30
parent 8d29edc634
commit 037c7b597f

View File

@@ -1,6 +1,6 @@
import bcrypt from "bcrypt";
export const hashPassword = (password: string) => {
export const hashPassword = (password: string): Promise<string> => {
return new Promise((resolve, reject) => {
bcrypt.genSalt(12, (err, salt) => {
if (err) {