From 8bcc9ca701ebac8859c087fd4d21ef577303f032 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Fri, 30 Jan 2026 05:34:18 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20Add=20authentication=20route=20w?= =?UTF-8?q?ith=20secret=20and=20admin=20password=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/websites/pokedex.online/server/oauth-proxy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/code/websites/pokedex.online/server/oauth-proxy.js b/code/websites/pokedex.online/server/oauth-proxy.js index 1279635..f784c08 100644 --- a/code/websites/pokedex.online/server/oauth-proxy.js +++ b/code/websites/pokedex.online/server/oauth-proxy.js @@ -56,6 +56,7 @@ app.use(requestLogger); // Mount API routes (nginx strips /api/ prefix before forwarding) app.use('/gamemaster', gamemasterRouter); +app.use('/auth', createAuthRouter({ secret: config.secret, adminPassword: config.adminPassword })); /** * Exchange authorization code for access token