📜  react steam auth - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:10.187000             🧑  作者: Mango

代码示例1
passport.use(new SteamStrategy({    returnURL: 'http://localhost:3000/auth/steam/return',    realm: 'http://localhost:3000/',    apiKey: 'your steam API key'  },  function(identifier, profile, done) {    User.findByOpenID({ openId: identifier }, function (err, user) {      return done(err, user);    });  }));