diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 17:25:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 17:25:12 +0900 |
| commit | 11c8d05e7d83dbde01d6632255120696773a32b5 (patch) | |
| tree | f99438579c0a573784ddcc2b8a0c73e1b70e496d /src/api/service | |
| parent | :v: (diff) | |
| download | sharkey-11c8d05e7d83dbde01d6632255120696773a32b5.tar.gz sharkey-11c8d05e7d83dbde01d6632255120696773a32b5.tar.bz2 sharkey-11c8d05e7d83dbde01d6632255120696773a32b5.zip | |
:v:
Diffstat (limited to 'src/api/service')
| -rw-r--r-- | src/api/service/twitter.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/api/service/twitter.ts b/src/api/service/twitter.ts index 9891ddd64c..2d97a26dcf 100644 --- a/src/api/service/twitter.ts +++ b/src/api/service/twitter.ts @@ -38,7 +38,12 @@ module.exports = (app: express.Application) => { token: res.locals.user }, { $set: { - twitter: result + twitter: { + access_token: result.accessToken, + access_token_secret: result.accessTokenSecret, + user_id: result.userId, + screen_name: result.screenName + } } }); |