YConnectとPassportを使用したログイン機能実装について Yahoo!JAPANYConnect Node.js+Express+Passport+Yconnect YConnect < TwitterFacebookGoogle var TwitterStrategy = require('passport-twitter').Strategy; var FacebookStrategy = require('passport-facebook').Strategy; var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; Strategyrequire callbackURL authenticate'twitter' app.get('/auth/twitter/callback', passport.authenticate('twitter', { failureRedirect: '/login' }), function (req, res) { res.redirect('/'); }); YConnectStrategy(?) Strategy
require('passport-yj').YJStrategy;
xcX3v84RxoQ-4GxG32940ukFUIEgYdPy
148e5dea86fdc712b721b8d965085caa
Stop