All Questions
Tagged with node.js passport.js
5,452
questions
0
votes
0
answers
19
views
(Passport JWT & NestJS) Token expired is blocked due having ignoreExpiration: true
I have a rt strategy and I don't want to check if the token is expired, I just want to verify it. I have declared in the super the ignoreExpiration a true but it stills give me a 401 and doesn't even ...
3
votes
2
answers
9k
views
NodeJS, getting username of logged in user within route
I am getting in to NodeJS and have followed some video tutorials for making stuff, to understand NodeJS and Express. It turned more in to copying as little were explained, so tried to make my own ...
0
votes
1
answer
13
views
Login Redirection Issue in Express.js with Passport Authentication
I am developing an Express.js application and facing a persistent issue with user authentication. Despite successful user registration and confirmed entries in the database, the login process does not ...
0
votes
0
answers
23
views
Why is my Google social login working despite my app not being published?
I have implemented Google social login for my web application. Here are the steps I've taken so far:
Created an OAuth 2.0 Client ID in the Google Cloud Console.
Added my application's domains under &...
56
votes
17
answers
45k
views
passport local strategy not getting called
I'm sure I'm missing something really obvious here, but I can't figure this out. The function I've passed to the LocalStrategy constructor doesn't get called when the login form gets submitted.
Code:
...
0
votes
1
answer
22k
views
How to solve "TypeError: fn is not a function"?
I'm trying to implement Passport.JS and JWT functionality into my nodejs application and receive the following error
TypeError: fn is not a function
in this code block of my application
const ...
0
votes
0
answers
34
views
passport login issues in session
I'm having trouble with my passport. The login process went through without any issues, but the passport key has to be saved into the session and there is not req.user in the requset
the initapp ...
1
vote
2
answers
368
views
passport.js failed to store session during live production server
When I ran the server locally at port 8080, it worked normally at authenticating and serializing data. But the time I ran my code on live production, yea it normally authenticate but it doesn't store ...
4
votes
3
answers
950
views
Session cookie not saving after app deployment
I created a frontend application using React which I then deployed on Netlify. The frontend app interacts with my express backend application which I created and deployed to Render. Any interaction ...
0
votes
1
answer
27
views
How do I specify which HTTP method should be used in a redirect in my express application?
I have a NodeJS/Express application where I am using PassportJS for authentication.
I have the following routes:
router.get("/profile", isUser, (req, res) => {
res.render("profile&...
-2
votes
0
answers
20
views
Should you filter out sensitive information when deserializing a user with Passport.js? [closed]
I'm integrating Passport.js for user authentication in my Node.js application and currently working on deserializing the user object. After serialization, Passport.js stores the user object in the ...
0
votes
1
answer
66
views
Getting "401 Unauthorized" when accessing protected route in Express.js with express-session and passport
I'm building a blob web application using Express.js where users can log in and access protected routes. I've set up session management using express-session and authentication with passport-local. ...
0
votes
0
answers
19
views
How to Configure Google Auth Redirect URI for a Node.js Application on AWS EC2?
I'm currently deploying a Node.js application that uses Google OAuth 2.0 for authentication on an AWS EC2 instance. However, when users attempt to log in using Google, they receive an "access ...
0
votes
1
answer
31
views
i have a problem when i am going to sign up with google in my app they show me fail to parse user profile message
hii everyone i have error in my node js app when i am trying to signup with google at that time they throw me an error message like "fail to parse user profile message" i am using passport ...
1
vote
4
answers
4k
views
Property 'id' does not exist on type 'User' with Passport and Typescript
Using PassportJS in Express with Typescript, I get the following error when trying to access req.user.id.
Property 'id' does not exist on type 'User'.ts(2339)
When logging just req.user to the ...