From 0cc01aa476d7ccdb63431df090a6e6766d32b13e Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 04:35:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Format=20error=20messages=20for?= =?UTF-8?q?=20Challonge=20OAuth=20configuration=20consistently?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/websites/pokedex.online/server/oauth-proxy.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/websites/pokedex.online/server/oauth-proxy.js b/code/websites/pokedex.online/server/oauth-proxy.js index 481854f..1296e00 100644 --- a/code/websites/pokedex.online/server/oauth-proxy.js +++ b/code/websites/pokedex.online/server/oauth-proxy.js @@ -55,9 +55,10 @@ app.use('/api/gamemaster', gamemasterRouter); */ app.post('/oauth/token', async (req, res) => { if (!hasChallongeAuth) { - return res.status(503).json({ + return res.status(503).json({ error: 'Challonge OAuth not configured', - message: 'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables' + message: + 'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables' }); } @@ -106,9 +107,10 @@ app.post('/oauth/token', async (req, res) => { */ app.post('/oauth/refresh', async (req, res) => { if (!hasChallongeAuth) { - return res.status(503).json({ + return res.status(503).json({ error: 'Challonge OAuth not configured', - message: 'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables' + message: + 'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables' }); }