aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index 3149a2af..05411d35 100644
--- a/index.js
+++ b/index.js
@@ -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
}