freeCodeCamp/curriculum/challenges/arabic/06-information-security-and.../advanced-node-and-express/implementation-of-social-au...

886 B

id title challengeType videoUrl localeTitle
589a8eb3f9fc0f352b528e72 Implementation of Social Authentication III 2

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/server.js") .then(data => { assert.match(data, /GitHubStrategy[^]*db.collection/gi, "Strategy should use now use the database to search for the user"); assert.match(data, /GitHubStrategy[^]*socialusers/gi, "Strategy should use "socialusers" as db collection"); assert.match(data, /GitHubStrategy[^]*return cb/gi, "Strategy should return the callback function "cb""); }, xhr => { throw new Error(xhr.statusText); })'

Challenge Seed

Solution

// solution required