From d52081c5278ba95f0117084dafca6fa5286f7edd Mon Sep 17 00:00:00 2001 From: khilkovetsmykhailo Date: Tue, 12 Nov 2024 20:09:10 -0500 Subject: [PATCH] Update error message Co-authored-by: adaptive-beaver --- src/strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy.ts b/src/strategy.ts index 8d67d36..1a43f49 100644 --- a/src/strategy.ts +++ b/src/strategy.ts @@ -74,7 +74,7 @@ export class ZitadelIntrospectionStrategy extends Strategy { ): Promise { const authHeader = req.headers?.authorization; if (!authHeader || !authHeader.toLowerCase().startsWith("bearer ")) { - this.fail({ message: "No bearer token found in authorization header" }); + this.fail({ message: "No bearer token found" }); return; }