You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
I am using passport for authentication and when I want to check if the authenticated user is member of a github organization it always return a false. I was also trying to get all members of that organization and it only returns a ONE member. Here you see my code:
passport.use(newStrategy({clientID: oauth_file.clientID,clientSecret: oauth_file.clientSecret,callbackURL: oauth_file.callbackURL},function(accessToken,refreshToken,profile,done){varorg=require('./.config.book.json').organization;varclient=github.client(accessToken);varghorg=client.org(org);ghorg.member(profile.username,(err,result)=>{if(err)console.log(err);console.log("Result: "+result);// Always is FALSEif(result==true)done(null,profile);elsedone(null,null);});}));
I was now investigating little and I can see that I can not see the other members because they are private.. So I have to be logged to my account and I imagine that with the accessToken returned by the Passport Strategy should be enought to be log in.
The text was updated successfully, but these errors were encountered:
I am using passport for authentication and when I want to check if the authenticated user is member of a github organization it always return a false. I was also trying to get all members of that organization and it only returns a ONE member. Here you see my code:
When I try to get all members doing this:
It always returns only ONE member.
I was now investigating little and I can see that I can not see the other members because they are private.. So I have to be logged to my account and I imagine that with the accessToken returned by the Passport Strategy should be enought to be log in.
The text was updated successfully, but these errors were encountered: