From 6bdaed2a9b13a0765aabe37ecbe925034e51f02f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 19 Oct 2026 12:44:20 +0200 Subject: [PATCH] Token set check: drop the array clause the access_token check already decides A JSON array has no string access_token, so the typeof check refuses it; the separate Array.isArray clause was an equivalent mutant's worth of code. Co-Authored-By: Claude Opus 5.5 --- src/oauth.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/oauth.ts b/src/oauth.ts index 9593b54..39dd2c0 100644 --- a/src/oauth.ts +++ b/src/oauth.ts @@ -188,7 +188,6 @@ export async function requestProviderTokens( if ( typeof answer !== "object" || answer === null || - Array.isArray(answer) || typeof (answer as { access_token?: unknown }).access_token !== "string" || !(answer as { access_token: string }).access_token || (answer as { error?: unknown }).error !== undefined