Is there any way to use these two functions in client component?
import bcrypt from 'bcrypt';
export async function hashPassword(password: string) {
return await bcrypt.hash(password, 10)
}
export async function comparePassword(password: string, hashedPassword: string) {
return await bcrypt.compare(password, hashedPassword)
}
``` right now i get this error:
Module not found: Can't resolve 'fs'