Skip to content

Instantly share code, notes, and snippets.

@zubairov
Last active February 22, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zubairov/17d119fe8fa7f929821e to your computer and use it in GitHub Desktop.
Save zubairov/17d119fe8fa7f929821e to your computer and use it in GitHub Desktop.
// 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