bcryptjs doesn't encrypt password before storing in mongodb and save a plain text
I am using bcryptjs to hash passwords before storing inside mongodb but it store passwords as plaintext(no hashing).this is my userModel.js const mongoose = require("mongoose"); const bcrypt = require("bcryptjs"); const userSchema = new mongoose.Schema( { mobile: { type: String, },…