Couldn't pass the test 'GitHub strategy should be setup correctly thus far.'

Tell us what’s happening:
Describe your issue in detail here.
I think that I set up correctly all the requires for the Github strategy, but still, I couldn’t pass the third test '‘GitHub strategy should be setup correctly thus far.’

I used Secrets for clientID and clientSecret and tried to use like below:
const GITHUB_CLIENT_ID = process.env[‘GITHUB_CLIENT_ID’]; since the default variable name always are some to mySecret, but I just decided to use process.env[‘GITHUB_CLIENT_ID’].

const GitHubStrategy = require('passport-github').Strategy;

  passport.use(new GitHubStrategy({
    clientID: process.env['GITHUB_CLIENT_ID'],
    clientSecret: process.env['GITHUB_CLIENT_SECRET'],
    callbackURL: 'https://boilerplate-advancednode.boyeongyoon.repl.co/auth/github/callback'
  },
    function(accessToken, refreshToken, profile, cb) {
      console.log(profile);
      //Database logic here with callback containing our user object
    }
  ));

Your project link(s)

solution: https://replit.com/@boyeongyoon/boilerplate-advancednode

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36

Challenge: Implementation of Social Authentication II

Link to the challenge:

The test is hardcoded to look for dot notation.


Issue opened

1 Like

Thank you for your help! :pray:t3:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.