Closed gaurishhs closed 11 months ago
Hello, I Had the youtube.readonly scope on still if i console log profile, i dont get user's youtube details.
Profile should have returned youtube username and url
profile object didnt have any yt info
passport.use(new GoogleStrategy({ clientID: config.YoutubeClientID, clientSecret: config.YoutubeClientSecret, callbackURL: config.YoutubeCallBackURL, passReqToCallback: true }, function (request, accessToken, refreshToken, profile, done) { console.log(profile) } )); app.get('/auth/google', passport.authenticate('google', { scope: [ 'email', 'profile', 'https://www.googleapis.com/auth/youtube.readonly' ] } )); app.get( '/auth/google/callback', passport.authenticate( 'google', { successRedirect: '/auth/google/success', failureRedirect: '/auth/google/failure' }));
Hello, I Had the youtube.readonly scope on still if i console log profile, i dont get user's youtube details.
Expected behavior
Profile should have returned youtube username and url
Actual behavior
profile object didnt have any yt info
Steps to reproduce
Environment