From 68f0217be9d0e9241ee05645f816e03f73baa7ad Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 9 Nov 2022 16:54:15 +0200 Subject: [PATCH] callback url --- src/server/Server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/Server.js b/src/server/Server.js index 69f3da7..ba6c4da 100644 --- a/src/server/Server.js +++ b/src/server/Server.js @@ -31,7 +31,7 @@ class Server extends EventEmitter { const { MARIA_HOST, MARIA_USER, MARIA_PORT, MARIA_PASS, MARIA_DB, MONGO_HOST, MONGO_USER, MONGO_PORT, MONGO_PASS, MONGO_DB, NODE_ENV, SECRET, DISCORD_SECRET, DISCORD_ID } = process.env; // Secret used for cookies, discord secret is for discord oauth - const { discord, http: httpOpts, databases } = options; + const { discord, http: httpOpts, databases, callbackURL } = options; this._options = options; this._shardId = parseInt(process.env.SHARD_ID); @@ -59,7 +59,7 @@ class Server extends EventEmitter { discordScope: discord.scope, discordSecret: DISCORD_SECRET, discordVersion: discord.version, - callbackURL: `${this.baseURL}${discord.callbackURL}`, + callbackURL: `${this.baseURL}${callbackURL}`, cookie: { secure: true }