What is your hint or solution suggestion?
The tests check for specific code in your server.js. The following hints will give you idea of how to be successful with the test GitHub strategy should be setup correctly thus far.:
- Use the specific name of the strategy as given in the example. The test will fail if you declare it anything other than
GitHubStrategy:
const GitHubStrategy = require('passport-github').Strategy;
- Make sure that you have the callback URL written in the code (and are not using a constant for it). This is different from the
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETboth of which need to be defined in the.envfile.
Challenge: Implementation of Social Authentication II
Link to the challenge: