Open bhupenjp opened 1 year ago
Data is storing in DB? In my code data is not storing
Data is storing in DB? In my code data is not storing
yes data is stor in DB.
I fixed. My issues was the model folder user.js did not implement
const jwt = require("jsonwebtoken")
// jwt token
userSchema.methods.getJwtToken = function () {
return jwt.sign({ id: this._id }, process.env.JWT_SECRET_KEY, {
expiresIn: process.env.JWT_EXPIRES,
})
}
userSchema File ?
I fixed. My issues was the model folder user.js did not implement
const jwt = require("jsonwebtoken") // jwt token userSchema.methods.getJwtToken = function () { return jwt.sign({ id: this._id }, process.env.JWT_SECRET_KEY, { expiresIn: process.env.JWT_EXPIRES, }) } ``
How did you fix it? My code looks the same and still not working
Gmail Activation Link getting expried after 1sec i am sending you screen shot
and second issue is login user email fill password fill but stell error message i am attaching screen shots
Did you find solution to this problem?
Gmail Activation Link getting expried after 1sec i am sending you screen shot
and second issue is login user email fill password fill but stell error message i am attaching screen shots