python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
CastError: Cast to ObjectId failed for value "XXXXXXXXXX" (type string) at path "_id" for model "User" for passport-linkedin-oauth2
Getting the above error when trying to authenticate a new user using LinkedIn's oAuth 2.0. It looks like I'm getting passed a 10 digit ObjectId instead of a 12 or 24 character id...
passport.use(new L...
Fiattarone
Votes: 0
Answers: 1
login works even if the password incorrect using passportJs
I am trying to build authentication system for my website , and I am using express to build server , and passport local strategy for authentication ,
let passport = require("passport");
let...

Null Array
Votes: 0
Answers: 2
passport.js deserialize user with mysql connection
How can I deserialize a User in passport.js when im connecting it to a db? It worked when I used an array but as soon as it was connected to the database it stopped working.
How can I fix that?
Error:...
TH Four
Votes: 0
Answers: 1
How to convert guild.permissions number into an array of persmissions discord.js oauth2
I need to verify if a user logging into the website has sufficient permissions to modify my bot's behavior on a guild. I used passport-discord to get information on the user, and this is what I got:
{...
Souly
Votes: 0
Answers: 2