cms
This commit is contained in:
parent
cbe3ed236b
commit
53c55e2722
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user