From 44b6ddb262f7b3f59cbd05bda674476cedb15b60 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 21 Jan 2017 07:41:55 +0900 Subject: [PATCH] Fix bug --- src/web/service/twitter/begin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/service/twitter/begin.ts b/src/web/service/twitter/begin.ts index 675848f5a..c0799df5c 100644 --- a/src/web/service/twitter/begin.ts +++ b/src/web/service/twitter/begin.ts @@ -9,7 +9,9 @@ const client = new Twitter({ }); module.exports = (req: express.Request, res: express.Response) => { - client.post('oauth/request_token', (x, y, z) => { + client.post('oauth/request_token', { + oauth_callback: config.url + '/tw/cb' + }, (x, y, z) => { console.log(x); console.log(y); console.log(z);