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

1.3 KiB

id title challengeType videoUrl localeTitle
589a69f5f9fc0f352b528e70 Implementation of Social Authentication 2

Description

undefined

Instructions

Tests

tests:
  - text: الطريق / المصادقة / جيثب الصحيح
    testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/server.js") .then(data => { assert.match(data, /("|")\/auth\/github("|")[^]*get.*passport.authenticate.*github/gi, "Route auth/github should only call passport.authenticate with github"); }, xhr => { throw new Error(xhr.statusText); })'
  - text: الطريق / المصادقة / جيثب / رد الاتصال الصحيح
    testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/server.js") .then(data => { assert.match(data, /("|")\/auth\/github\/callback("|")[^]*get.*passport.authenticate.*github.*failureRedirect:( |)("|")\/("|")/gi, "Route auth/github/callback should accept a get request and call passport.authenticate for github with a failure redirect to home"); }, xhr => { throw new Error(xhr.statusText); })'

Challenge Seed

Solution

// solution required