All Questions
1,463
questions
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 &...
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 ...
-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
0
answers
11
views
can someone explain how serializeuser deserializeuser work here with google login and normal login
why when someone not logged in with google tries to post something the req.user gives the google id only but when its a user thats not logged in with google the req.body gives the id and the username ?...
0
votes
1
answer
19
views
I am getting a "Bad Request" while login using my nodejs server but i am confused why i am getting this error. I am quite new to nodejs
passport.use(new LocalStrategy(async(email,password,done) => {
try{
const user = await User.findOne({email:email})
if(!user){
return done(null,false,{message:"Invalid email&...
1
vote
0
answers
18
views
Redirecting to different routes according to user type
This is my express code, I'm handling authentication by passport.js and passport-local-mongoose, I've been having trouble redirecting different user type to their dashboard
var express = require("...
0
votes
0
answers
27
views
PassportJS login problem with failureRedirect: '/auth/login'
I have a project where I am making a login system with passport.
I use nodejs and mysql. What happens is when i enter info and press login, it just failureRedirect: '/auth/login' without any logs.
...
0
votes
0
answers
21
views
Passport.js successRedirect doesn't load page, request keeps pending in signUp form
Im trying to write signUp proccess with passport.js local-strategy and it works and save user data in dataBase but it doesnt redirect me and keeps pending while the failureRedirect works well the ...
-2
votes
1
answer
49
views
Express doesn't redirect to react-router root path after successful MongoDB save - fails silently - how to redirect successfully?
I'm a novice with React and react-router, so I'm probably making a silly mistake.
I'm building a web app with React and react-router as the frontend server, and Express with MongoDB as the backend ...
1
vote
0
answers
16
views
I can't log in with local-passport
I'm new in passport and I would like some help. I can't log in after adding local passport to my program. The login page is loaded and is always redirected to itself, and is not taken to the main page ...
0
votes
1
answer
47
views
Why is my Node.js app redirecting me to the failureRedirect route no matter what?
I am making a simple login page using Node.js for back-end stuff and passport for authentication. To me all my code looks good and it looks like it should work. I even put it into chatGPT and it ...
0
votes
0
answers
24
views
passportjs req.isAuthenticated() always returns false
I am using react for my frontend and its hosted on port 3001, while my backend is hosted on port 3000. I am sending a GET request to the server from my frontend to a route that runs "req....
1
vote
0
answers
64
views
Enable authorization in express-gateway
I'm having a bit of an issue enabling authorization in express-gateway.
Based on the docs, Express Gateway is designed to apply policies to specific endpoints using its configuration files (gateway-...
0
votes
0
answers
39
views
How do I send i send an gmail api request- i did all the authentication steps but i hit a wall
I am trying to construct a Gmail replica but I've hit a roadblock in terms of making requests to Gmail API-
here's my code:
index.js
const express = require("express");
const cors = require(&...
0
votes
0
answers
28
views
problems with cookies with express-session node.js
i deploy my api in fl0 and use the free url from fl0 and deploy my frontend in vercel, the problem is that cookies doesnt save in the client,
my configuration of express-session is:
const store = ...