From 68f49860c2459c0061d304e5024ee673d3b03d00 Mon Sep 17 00:00:00 2001 From: bramjanssen Date: Fri, 24 May 2024 11:58:58 +0200 Subject: [PATCH] fix: updated warning whenever token is invalid --- src/auth/bearer/bearer.strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/bearer/bearer.strategy.ts b/src/auth/bearer/bearer.strategy.ts index b3ccde6..0270e1b 100644 --- a/src/auth/bearer/bearer.strategy.ts +++ b/src/auth/bearer/bearer.strategy.ts @@ -87,7 +87,7 @@ export class BearerStrategy extends PassportStrategy(Strategy, 'bearer') { this.logger.debug( `Introspection response: ${JSON.stringify(response)}`, ); - this.logger.warn(`Token is invalid`); + this.logger.error(`Token is not active`); // We pass it through info to indicate that the token is invalid and trigger a fail vs an error. // See strategy.js for more information on the implementation return {