79328398

Date: 2025-01-04 07:20:48
Score: 2
Natty:
Report link

What a insteresting thing i am the one who asked this question and too i am answering this question:

So, i found out that i am not returning anything in signin callback and everything is just perfect. so i added this just after pervious condition of google and github:

if (account.provider === 'credential-provider') {
        let existing user = await collection.findOne({email:user.email, password:userpassword)}
        if (existingUser) {
          return true
        } else {
          return false
        }
      }

and the problem is solved, hey stackoverflow if you wanna reach me you can find me by REACH ME this is my link created by my own Website

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What a in
  • Low reputation (1):
Posted by: Yash Fighter