diff --git a/data/users.json b/data/users.json index dd0d690..24932cd 100644 --- a/data/users.json +++ b/data/users.json @@ -5,7 +5,7 @@ "access_token": "jY17lCWaOpTdPQCnz50kfNm7ABpsGz", "expires_in": 604800, "refresh_token": "3TronknZ7j5kVSDBjI3OechmCYF8ck", - "scope": "identify guilds.members.read guilds" + "scope": "guilds guilds.members.read identify" }, "avatar": null, "communication_disabled_until": null, @@ -34,6 +34,6 @@ "deaf": false, "bio": "", "banner": null, - "token": "0e33a0fe-0248-47a4-949d-1c4d37b2c443" + "token": "289373d4-8733-484b-b674-2230e0afc6ae" } ] \ No newline at end of file diff --git a/package.json b/package.json index 9eec000..da419c2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "subsonics-web", "author": "Raphix", - "version": "0.2.0", + "version": "0.2.1", "nodemonConfig": { "ext": "js, html", "ignore": [ diff --git a/src/modules/sub-auth.js b/src/modules/sub-auth.js index 4b939b4..4870741 100644 --- a/src/modules/sub-auth.js +++ b/src/modules/sub-auth.js @@ -46,7 +46,7 @@ module.exports.getDiscordUser = function (code, session) { var link = "https://subsonics.raphix.fr" if(process.env.DEV == "true") { - link = "http://localhost:3001" + link = "http://localhost:4000" } const params = new URLSearchParams(); diff --git a/src/modules/sub-web.js b/src/modules/sub-web.js index 2079cb4..9197a58 100644 --- a/src/modules/sub-web.js +++ b/src/modules/sub-web.js @@ -26,7 +26,7 @@ function init() { const app = express(); - const port = normalizePort(process.env.PORT || '3001'); + const port = normalizePort(process.env.PORT || '4000'); const server = require('http').createServer(app); @@ -152,7 +152,7 @@ function IOConnection(io) { if(process.env.DEV == "true") { alog.log("Mode Developpeur Actif : Redirige vers LOCALHOST") - discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //DEV + discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //DEV } else { discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=https%3A%2F%2Fsubsonics.raphix.fr%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //OFFICIEL } diff --git a/src/web/routes/internal.js b/src/web/routes/internal.js index bd302d3..bfea327 100644 --- a/src/web/routes/internal.js +++ b/src/web/routes/internal.js @@ -65,7 +65,7 @@ router.get("/socketlink", (req,res,next) => { if(process.env.DEV == true) { - res.send("ws://localhost:3001") + res.send("ws://localhost:4000") } else { res.send("ws://subsonics.raphix.fr") }