Log on Request Implements #2
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good
This commit is contained in:
parent
99734aa619
commit
0c791c2b45
@ -662,7 +662,7 @@ function startServer(client) {
|
|||||||
|
|
||||||
function createIdentity(response, token, socket) {
|
function createIdentity(response, token, socket) {
|
||||||
|
|
||||||
log.server(response)
|
console.log(response)
|
||||||
log.server("Discord Auth : REQUESTING DATA - TOKEN : " + token + " - DISCORD_ACCESS_TOKEN : " + response.access_token)
|
log.server("Discord Auth : REQUESTING DATA - TOKEN : " + token + " - DISCORD_ACCESS_TOKEN : " + response.access_token)
|
||||||
|
|
||||||
fetch('https://discord.com/api/users/@me', {
|
fetch('https://discord.com/api/users/@me', {
|
||||||
@ -678,7 +678,8 @@ function startServer(client) {
|
|||||||
|
|
||||||
function addIdentity(response, token, socket) {
|
function addIdentity(response, token, socket) {
|
||||||
|
|
||||||
log.server(response)
|
|
||||||
|
console.log(response)
|
||||||
log.server("Discord Auth : [IDENTITE] : Nouvelle identité - SOCKET_ID : " + socket.id + " - DISCORD_USER : " + response.username + "#" + response.discriminator)
|
log.server("Discord Auth : [IDENTITE] : Nouvelle identité - SOCKET_ID : " + socket.id + " - DISCORD_USER : " + response.username + "#" + response.discriminator)
|
||||||
socket.emit("registerToken", token)
|
socket.emit("registerToken", token)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user