strategy.js 395 B

123456789101112131415161718192021
  1. var passport = require('passport-strategy')
  2. , util = require('util')
  3. function Strategy(options, verify) {
  4. options = options || {};
  5. }
  6. /**
  7. * Inherit from `passport.Strategy`.
  8. */
  9. util.inherits(Strategy, passport.Strategy);
  10. Strategy.prototype.authenticate = function(req, options) {
  11. console.log('ethereum authenticate...');
  12. };
  13. /**
  14. * Expose `Strategy`.
  15. */
  16. module.exports = Strategy;