0
친구들, 저는 내 응용 프로그램에서 사용자 인증을 위해 passport-trello를 사용하고 있습니다. passportjs, tokenSecret은 빈 객체를 반환합니다.
export default() => {
passport.use(new TrelloStrategy({
consumerKey: process.env.TRELLO_CONSUMER_KEY,
consumerSecret: process.env.TRELLO_CONSUMER_SECRET,
callbackURL: 'http://localhost:3000/auth/trello/callback',
trelloParams: {
scope: 'read',
name: 'Common Feed',
expiration: '1hour'
}
}, (req, token, tokenSecret, profile, done) => {
let user = {};
user.token = token;
user.tokenSecret = tokenSecret;
user.profile = profile;
done(null, user);
}));
}
내가 다른 소품은 해당 정보로 가득 동안
user.tokenSecret
는 빈 객체를 반환 밝혀 사용자 개체를 로그 아웃하는 것을 시도하고있다. 나는 누군가가이 쟁점을 갖고 있는지, 그리고 그렇게되는 이유가 궁금합니다. 고마워요