티스토리 뷰

이 코드는 저에게 효과적입니다.

server.auth.strategy('twitter', 'bell', {
    provider: 'twitter',
        config: {
                getMethod: 'account/verify_credentials',
                        getParams: {include_email:'true' },//doesn't work without quotes!
                            },
                                password: 'secret_cookie_encryption_password', //Use something more secure in production
                                    clientId: secret.twitterId,
                                        clientSecret: secret.twitterSecret,
                                            isSecure: false //Should be set to true (which is the default) in production
                                            });
                                            

Twitter 애플리케이션 설정에서 필요한 권한 (사용자에게 이메일 주소 요청)을 허용하는 것을 잊지 마십시오.



출처
https://stackoverflow.com/questions/39915886
댓글
공지사항
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31