Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Passport.js req.isAuthenticated() always returns false

Hello i am having an issue with this last step of making a login but this passport built in function is not working and i dont know why? function checkAuthenticated(req, res, next) { console.log(&...
Pooh_Jr's user avatar
0 votes
0 answers
17 views

"failed to fetch user profile" Error While Authenticating LinkedIn in Passport JS OAuth2

I'm having following error while authenticating LinkedIn in Passport JS. { "message": "LinkedIn authentication failed", "error": "failed to fetch user profile" }...
Fuaad's user avatar
  • 424
0 votes
0 answers
17 views

"Unknown scope "r_email"" Error While Authenticating LinkedIn in Passport JS OAuth2

I'm having following error while authenticating LinkedIn in Passport JS. {"message":"LinkedIn authentication failed","error": "Scope "r_emailaddress&...
Fuaad's user avatar
  • 424
0 votes
0 answers
14 views

How to pass query parameter to Google strategy passport nestJs

Ok, so I am trying to pass a query parameter from my mobile app as /auth/google?purpose=addPlatform to my backend so that I can do stuff with that. Right now is not picking up the parameter. I am ...
chewie's user avatar
  • 577
-4 votes
0 answers
23 views

Passport: TypeError: Cannot set property 'user' of undefined [closed]

When logged in it returns this error: [SERVER] TypeError: Unable to set the 'user' property of undefined [SERVER] a \node_modules\passport-remember-me\node_modules\passport\lib\passport\http\request....
elcid's user avatar
  • 23
0 votes
1 answer
71 views

Implementing Microsoft SSO with passport-azure-ad and without msal

I want to implement SSO sign up/sign in for Microsoft Azure AD B2C in NodeJS however, I want to create the user using Graph API. I'm using passport-azure-ad strategy. The process has to be custom ...
Scripter9700's user avatar
0 votes
0 answers
24 views

NestJs: Setup passport strategy for Linked authentication using OpenId

I am trying to setup "Sign In with LinkedIn using OpenID Connect" in my nestjs application. I tried to setup using passport-linkedin-oauth2 but was always getting you dont have access to ...
user3479754's user avatar
0 votes
1 answer
36 views

Error: Unknown authentication strategy "google" in Passport.js OAuth Setup

I'm trying to implement Google OAuth in my Node.js application using Passport.js, but I keep getting the following error when accessing the /auth/google route: Error: Unknown authentication strategy &...
Krishnadev. V's user avatar
-1 votes
1 answer
24 views

OAuth 2.0 Spotify InternalOAuthError

InternalOAuthError: failed to fetch user profile    at C:\Users\PAKSHAL\Documents\Pakshal\Projects\Saarang\backend\node_modules\passport-spotify\lib\passport-spotify\strategy.js:151:19    at ...
Pakshal Shah's user avatar
0 votes
0 answers
14 views

Passport.js session returns undefined for req.user in TRPC-context

I'm using Express.js with Passport.js for user authentication in my Vue 3 app. My session setup uses express-session and cookie-parser to store session cookies. While the authentication works, when I ...
silj6's user avatar
  • 1
0 votes
0 answers
21 views

Mocking passport.authenticate behaves inconsistently between tests in Jest

I am trying to test an Express.js route in a Node.js application using Jest, where I mock passport.authenticate. Each test requires a different mock implementation of passport.authenticate, but the ...
Smit Patel's user avatar
0 votes
0 answers
51 views

How to Use Google OAuth Access Token to Open an Authenticated Google Maps Session Using Playwright

I am working on a Node.js application that uses Playwright to automate interactions with Google Maps. The goal is to use a previously obtained Google OAuth access_token and id_token to open a browser ...
Messaoud Med Yassine's user avatar
0 votes
0 answers
11 views

Terminal Showing a Prisma Error In PERN App

Error Argument `user` is missing. set(): PrismaClientValidationError: Invalid `this.prisma[this.sessionModelName].create()` invocation in /home/muhammed/Desktop/cloud-nest/cloud-nest/node_modules/@...
Mhmd's user avatar
  • 11
1 vote
0 answers
25 views

how do i verify user using oauth 2 after redirect in callbackURL how to send my session data to frontend

Here is backend....in localhost:3000 import { Router } from "express"; import passport from "passport"; import "../stratergies/DiscordStratergy.js" const router = Router(...
Shubham's user avatar
  • 23
0 votes
0 answers
27 views

401 Unauthorized and req.user Undefined After Deployment (Local Works Fine)

0 I have a MEVN app using Passport.js for authentication. Everything works fine when both the server and client are running locally. However, after deploying one or both the server (on Back4App) and ...
Faruq Alawy Hudaya's user avatar

15 30 50 per page
1
2 3 4 5
464