Skip to main content

All Questions

0 votes
0 answers
20 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 ...
ASHWIN C's user avatar
0 votes
0 answers
24 views

How can i set a localstorage of my Token when google Auth is done?

I tried to add a localStorage of my token when the process is done so i can get it in my react component (let tok = localStorage.getItem('jwtGoogleToken');) like this : if (account.enable === true) { ...
mitsu's user avatar
  • 439
0 votes
0 answers
36 views

Google OAuth logic implementaion (404 not found, net::ERR_NAME_NOT_RESOLVED)

Our team is currently developing an app using react native (expo) and Express. The part I am responsible for is implementing Google OAuth login, and we are currently using passport.js for that. The ...
Hyun's user avatar
  • 1
0 votes
1 answer
76 views

Passportjs Google Oauth2 Unexpected behaviours

I'm trying to implement Login with Google (OAuth2) using Nest.js - Passport.js and passport-google-oauth20 but facing unexpected behaviors. When it hits the login route - instead of being redirected ...
Ahmad Raza's user avatar
0 votes
0 answers
73 views

Passport.js Google OAuth: Best Practices for Handling and Customizing Error Responses

I'm working on implementing Google OAuth authentication in my Node.js application using Passport.js. I have set up a custom error-handling middleware to handle authentication errors, but it's not ...
Roni Jack Vituli's user avatar
0 votes
0 answers
17 views

How do I send the profile data to a client page after authentication with Google OAuth?

So, this is my server side code where I handle my routes: const express = require("express"); const session = require("express-session"); const bodyParser = require("body-...
CodeBlaze's user avatar
0 votes
0 answers
24 views

no redirecting after authentication via passport.js using google-oauth

. After sign in via google auth it never redirects to dashboard it only loads without sending error . the code here for authentication . I was using passport for it as middleware for authentication . ...
Varad Patil's user avatar
0 votes
1 answer
1k views

How Do I Implement OAuth2 Authentication in a Node.js Express Application Using Passport?

**I'm working on a Node.js Express application, and I want to implement OAuth2 authentication using Passport.js. Specifically, I'm looking to allow users to sign in with their Google accounts. ** I've ...
Hussain Ahmed Shakil's user avatar
0 votes
0 answers
41 views

Simple google login doesn't connect to the server

It is my first time implementing google login. I am using react-google-login on the front end, which is a library based on react 16 but aside from that should work. On the backend I am using passport ...
Atanas Bobev's user avatar
0 votes
0 answers
144 views

Google authorization TokenError: Bad Request, front-end possible reasons

I have this error (TokenError: Bad Request) on prod, but not always just sometimes we catch it, and I wondering what the reason, my investigation result is that inside passport logic we make request ...
Sergii Zymovets's user avatar
0 votes
0 answers
43 views

Google Authentication not functioning after deployment

I successfully implemented Google Authentication on my local environment, but I'm encountering an error after deployment when connecting to a Google account (see attached image). User creation is ...
willm berchiche's user avatar
0 votes
0 answers
33 views

How to resolve 'ERR_HTTP_HEADERS_SENT' Error in Passport Google OAuth 2.0 Authentication?

Expected behavior Upon successful authentication using Google OAuth 2.0 with Passport, I expect the user to be redirected to a successful login route. Actual behavior I'm getting the Error [...
Brian Rey's user avatar
0 votes
0 answers
195 views

I get an Access blocked Authorization Error when I try to access my application via authetication

I am adding Google OAuth to my web app project. However, whenever I enter the url containing the callback, I get an error "Missing required parameter: scope Learn more about this error If you are ...
Nana Kwame Dickson's user avatar
-1 votes
1 answer
30 views

Req.user is undefined and passport.deserializeUser is never been called in express app

i checked every similar question but no response is useful in my particular case. i have a simple todo app that i want to use passport.js in it. i have: Express app (PORT 3001) and Reactjs (PORT ...
Laxus's user avatar
  • 23
0 votes
0 answers
75 views

Passport.js - OAuth logins (Google, Facebook etc) - how to store state during redirects?

Using Passport and Express I have Google & Facebook logins working pretty well. These logins redirect to Google/FB etc and then redirect back to a URL on my server (say /login/success). I would ...
DaveW's user avatar
  • 378

15 30 50 per page
1
2 3 4 5
10