All Questions
160
questions
0
votes
1
answer
952
views
use dynamic passport strategy nestjs with multiple clientID and clientSecret
I want to implement passport google and facebook strategy using multiple keys for different apps, like get clientID or something in req params and select google clientID and clientSecret from DB on ...
0
votes
0
answers
258
views
Nodejs React - Facebook Login - Cors issue
I am trying to implement facebook login with passport and FacebookStrategy.
passport.use(
new FacebookStrategy(
{
clientID: 'myclientid',
clientSecret: '...
0
votes
1
answer
414
views
Using nodejs passport for multiple OAuth2.0 methods to login to the same account
Im trying to use passport to use OAuth2 to login but I'm not fully understanding the documentation.
My end goal is to have the front page of my website to have multiple login options via twitch/google/...
0
votes
1
answer
1k
views
How to use PassportJS with JWT in a REST API
I'm currently working on building a REST API where users can authenticate themselves via different passport strategies (google, facebook). The authentication has to be done without a session.
Now I've ...
1
vote
0
answers
159
views
Passport facebook doesn't create new user and times out
I'm using passport with multiple strategies (JWT, Google and Facebook). All work fine except Facebook, when an existing user tries to login. In this case it just times out and I get a 504.
It tries to ...
2
votes
1
answer
247
views
Express login session only lasts one page view
In the code below, when I visit / the first time (not logged onto FB) I'm redirected to the /login page, as expected.
Then I login onto facebook and I'm then taken to /, as expected
If I then refresh ...
2
votes
0
answers
224
views
error implementing passport-facebook authentication with the error code as "FacebookTokenError": redirect_uri isn't an absolute URI. Check RFC 3986
i'm using a localhost to test the passport-facebook authentication, i've been trying to implement the Auth and im getting the error mentioned above i've reviewed similar questions but none seem to ...
3
votes
1
answer
2k
views
Having trouble implementing Passport.js with React for Facebook login
I am having trouble utilizing Passport.js with React for Facebook login.
I was able to set up everything from the server with Express and Node.js to the client-side using React.js. From the client-...
0
votes
1
answer
558
views
Nestjs passport-facebook Invalid OAuth access token
I'm implementing passport-facebook in my NestJS application. I found many examples and problems with different solutions, and I was trying to implement it in different ways but still no luck.
Here is ...
1
vote
0
answers
94
views
I am not able to insert facebook account to mongodb
I am trying to sign up my users using facebook using passportjs. I am using mongodb as database and using mongoose to interact with it.
const userSchema = mongoose.Schema({
email: String,
password: ...
1
vote
0
answers
234
views
How can I serialize and deserialize a user with local login and with facebook login at the same time with node.js and mysql
I've tried to add a plus parameter to serializeUser method such as email or facebook_id parameter and then I checked that:
if (user.id) {
done(null, user.id);
} else {
done(null, user.email);
}...
0
votes
1
answer
1k
views
What does enableProof do in passportjs OAuth 2.0? Does it enable pkce?
I want to implement oAuth2.0 but after reading about oAuth 2.0 it is my understanding that it should use Authorization Code grant-type and should also use PKCE. I am using passportJs to implement ...
1
vote
1
answer
471
views
nodejs passport callback not being called
I am very new to both JS and NodeJs/Express. I am writing a proof of concept MVP node/express app that uses passport for authentication (via social logins).
I have written the server and installed ...
1
vote
1
answer
2k
views
How to Pass Data from React Native to Passport.js FacebookTokenStrategy Callback?
I'm trying to pass data like deviceID to Passport.js FacebookTokenStrategy callback.
I tried using req._toParam, but it is not working, seems like it's deprecated.
server router file
authRouter....
11
votes
2
answers
4k
views
facebook-passport with NestJS
I have looked into both passport-facebook and passport-facebook-token integration with NestJS. The problem is that NestJS abstracts passport implementation with its own utilities such as AuthGuard.
...