Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bhupenjp opened this issue Jul 5, 2023 · 6 comments
Open

Comments

@bhupenjp
Copy link

bhupenjp commented Jul 5, 2023

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
Copy link

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

@bhupenjp
Copy link
Author

bhupenjp commented Jul 6, 2023

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

yes data is stor in DB.

@Jerald13
Copy link

Jerald13 commented Feb 2, 2024

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
Copy link

userSchema File ?

@Somto-ob
Copy link

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants