Last active
February 22, 2016 13:32
-
-
Save zubairov/17d119fe8fa7f929821e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This function will be called by the platform | |
// to verify credentials | |
module.exports = function verifyCredentials(credentials, cb) { | |
// In credentials you will find what users entered in account form | |
console.log('Credentials passed for verification %j', credentials) | |
if (true) { | |
// Verified | |
return cb(null, {verified: true}); | |
} else { | |
// Verification failed | |
return cb(null , {verified: false}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment