diff options
| author | Adam Soltys <[email protected]> | 2018-12-26 16:42:45 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2019-02-05 20:53:45 -0800 |
| commit | 9d2050e0ef5364c9cd0912eeba7f5ba1678b5ba8 (patch) | |
| tree | 973e1421b1af69205541f13d8dc88a299269ac3a | |
| parent | 9773d9797e7f097b05610c1620c59ed66c9af7b4 (diff) | |
| download | coinos-server-9d2050e0ef5364c9cd0912eeba7f5ba1678b5ba8.tar.gz coinos-server-9d2050e0ef5364c9cd0912eeba7f5ba1678b5ba8.zip | |
move facebook userid into config setting
| -rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -480,7 +480,7 @@ const l = console.log app.post('/facebookLogin', async (req, res) => { let { accessToken, userID } = req.body - let url = `https://graph.facebook.com/debug_token?input_token=${accessToken}&access_token=${config.facebook}` + let url = `https://graph.facebook.com/debug_token?input_token=${accessToken}&access_token=${config.facebook.appToken}` let check = await axios.get(url) if (!check.data.data.is_valid) return res.status(401).end() @@ -497,7 +497,7 @@ const l = console.log user.address = (await lna.newAddress({ type: 1 }, lna.meta)).address user.password = await bcrypt.hash(accessToken, 1) let friends = (await fb.api(`/${userID}/friends?access_token=${accessToken}`)).data - if (friends.find(f => f.id === '106809130385673')) user.limit = 100 + if (friends.find(f => f.id === config.facebook.specialFriend)) user.limit = 100 await user.save() addresses[user.address] = user.username } |
