Category "passport.js"

passport-jwt in MEAN-Stack returning Internal Server Error 500

Im using passport.js JWT strategy to authenticate my MEAN-Stack app. The unsecured routes work properly but i cant get the secured routes to work. they allways

ERR_HTTP_HEADERS_SENT: Cannot set headers after they are sent to the client

I'm facing this weird issue in NodeJS when using with Passport.js, Express and Mongoose. Basically, I get an error saying "Cannot set headers after they are sen

Laravel and Passport getting SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token'

I've seen many posts about this error, but none of the solutions are working for me. I'm running Laravel with Passport which is working fine on my development s

Invalid "id" when trying to set up Google OAuth2 with Passport

I'm trying to set up my user authentication routes with passport using the GoogleStrategy and having some issues configuring it. I grabbed some code snippets to

Export and Import Passport.JS Issues

I am using node js as the backend and react as the frontend. Within the backend, I would like to create a separate file that handles every passport.js module as

What's the difference between req.isAuthenticated() and passport.authenticate() in passport?

I am a beginner in programmation and experimenting the authentication process through node.js, express and mongoDB. I have used passport, passport-local and pas

Setting Up Postman for API Testing When Using Passport Authorization

I am a bit confused while trying to get Postman to work when testing the API of my application. Namely, I am using Passport authentication; however, I do not kn

Received an unhandled rejection error every time I save something to my database

I keep getting this error whenever I save something to the database. Regardless if its numbers, text ect, it happens and I have no idea why. Two months prior ev

Passport.js isAuthenticated() always returns false when on heroku, but works properly when server is run locally

I am using passport.js for authentication as well as express-sessions to store cookies on the client. Additionally, my client is a react app. I still am not sur

cors issue with passport.js google oauth strategy

I have a setup as such: -backend -model --User.js -routes --auth.js -database --connection.js -passport --passpo

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 informatio