Skip to content

Instantly share code, notes, and snippets.

@qoelet
Created November 9, 2010 01:27
Show Gist options
  • Save qoelet/668579 to your computer and use it in GitHub Desktop.
Save qoelet/668579 to your computer and use it in GitHub Desktop.
// myFirstFormStrategy.js
module.exports= function(options) {
options= options || {};
var that= {};
var my= {};
that.name = options.name || "someName";
that.authenticate= function(request, response, callback) {
this.success( {id:'1', name:'someUser'}, callback );
}
return that;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment