This commit is contained in:
pawan-dot 2022-11-01 15:38:36 +05:30
parent cbe3ed236b
commit 53c55e2722

View File

@ -64,9 +64,7 @@ userSchema.pre("save", async function (next) {
// JWT TOKEN
userSchema.methods.getJWTToken = function () {
return jwt.sign({ id: this._id }, process.env.JWT_SECRET, {//make token
});
return jwt.sign({ id: this._id }, process.env.JWT_SECRET);
};
// console.log(process.env.JWT_SECRET)