From e76762e09a3694c72828b35f642a93d77a0d5ba7 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 21 Sep 2026 10:00:19 +0100 Subject: [PATCH] fix(oauth2): keep the consent buttons disabled while the redirect is in flight The approve and reject handlers reset their busy flag right after handing the browser a redirect, so the buttons re-enabled while the client was still loading. On a slow client (a Sites preview cold-starting behind edge) the user could press Authorize again and get a grant-not-found error for a flow that was succeeding. --- .../(public)/oauth2/consent-card.svelte | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/src/routes/(public)/oauth2/consent-card.svelte b/src/routes/(public)/oauth2/consent-card.svelte index 583e2a8c07..58a9135427 100644 --- a/src/routes/(public)/oauth2/consent-card.svelte +++ b/src/routes/(public)/oauth2/consent-card.svelte @@ -1,5 +1,6 @@