shahriarsajeeb / Eshop-tutorial

https://eshop-tutorial.vercel.app
809 stars 278 forks source link

Gmail Activation Link getting expried after 1sec and login uses #8

Open bhupenjp opened 1 year ago

bhupenjp commented 1 year ago

Gmail Activation Link getting expried after 1sec i am sending you screen shot Screenshot 2023-07-05 174733

and second issue is login user email fill password fill but stell error message i am attaching screen shots Screenshot 2023-07-04 145349

Nithishkumarr commented 1 year ago

Data is storing in DB? In my code data is not storing

bhupenjp commented 1 year ago

Data is storing in DB? In my code data is not storing

yes data is stor in DB.

Jerald13 commented 6 months ago

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,
  })
}
Sumit-sky commented 5 months ago

userSchema File ?

Somto-ob commented 3 months ago

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

Somto-ob commented 3 months ago

Gmail Activation Link getting expried after 1sec i am sending you screen shot Screenshot 2023-07-05 174733

and second issue is login user email fill password fill but stell error message i am attaching screen shots Screenshot 2023-07-04 145349

Did you find solution to this problem?