fix: ts errors

This commit is contained in:
karishmas6
2024-09-24 19:16:51 +05:30
parent e9d3b9fcb0
commit a2e4c2dde0

View File

@@ -1,6 +1,6 @@
import bcrypt from "bcrypt";
export const hashPassword = (password) => {
export const hashPassword = (password: any) => {
return new Promise((resolve, reject) => {
bcrypt.genSalt(12, (err, salt) => {
if (err) {
@@ -17,6 +17,6 @@ export const hashPassword = (password) => {
}
// password from frontend and hash from database
export const comparePassword = (password, hash) => {
export const comparePassword = (password: any, hash: any) => {
return bcrypt.compare(password, hash)
}