From 4f001f7db391b05e91b5300d313db7fa58d7e88f Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Fri, 27 Jun 2025 03:53:29 +0000 Subject: [PATCH] chore(manager): return internal error instead of forbidden error on auth hook --- packages/core/src/manager/auth.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/core/src/manager/auth.ts b/packages/core/src/manager/auth.ts index 56056c241..7ac336d15 100644 --- a/packages/core/src/manager/auth.ts +++ b/packages/core/src/manager/auth.ts @@ -83,10 +83,7 @@ export async function authenticateRequest( } } catch (error) { logger().info("authentication error", { error: stringifyError(error) }); - if (errors.ActorError.isActorError(error)) { - throw error; - } - throw new errors.Forbidden("Authentication failed"); + throw error; } }