From 3106a7006584717716b0ce7d6b1f754178fb4b03 Mon Sep 17 00:00:00 2001 From: anikethinge Date: Tue, 17 Nov 2026 10:32:15 +0530 Subject: [PATCH] fix(auth): rethrow errors in tokenRequestHandler instead of swallowing --- packages/auth/src/utils/tokenRequestHandler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/auth/src/utils/tokenRequestHandler.ts b/packages/auth/src/utils/tokenRequestHandler.ts index 9e6c7dc5eb..0fff84c266 100644 --- a/packages/auth/src/utils/tokenRequestHandler.ts +++ b/packages/auth/src/utils/tokenRequestHandler.ts @@ -24,5 +24,6 @@ export async function tokenRequestHandler( return response.json(); } catch (error) { console.error(`Error with ${method} request:`, error); + throw error; } }