[auth] save full discord username, useful for authenticating when asked to reset access

This commit is contained in:
Andrea Vos 2022-08-29 22:08:33 +02:00
parent 17f35d1ddb
commit 5f26dd7e76

View File

@ -71,6 +71,7 @@ module.exports.handlers = {
id: r.profile.id, id: r.profile.id,
email: r.profile.email, email: r.profile.email,
name: r.profile.username, name: r.profile.username,
username: r.profile.username + '#' + r.profile.discriminator,
avatar: `https://cdn.discordapp.com/avatars/${r.profile.id}/${r.profile.avatar}`, avatar: `https://cdn.discordapp.com/avatars/${r.profile.id}/${r.profile.avatar}`,
access_token: r.access_token, access_token: r.access_token,
access_secret: r.access_secret, access_secret: r.access_secret,