fix(core): prevent OAuth server crash on unexpected requests (#19668)

This commit is contained in:
sinisterchill
2026-02-23 23:33:31 +05:30
committed by GitHub
parent 8b1dc15182
commit 2e3cbd6363
2 changed files with 65 additions and 0 deletions
+1
View File
@@ -490,6 +490,7 @@ async function authWithWeb(client: OAuth2Client): Promise<OauthWebLogin> {
'OAuth callback not received. Unexpected request: ' + req.url,
),
);
return;
}
// acquire the code from the querystring, and close the web server.
const qs = new url.URL(req.url!, 'http://127.0.0.1:3000').searchParams;