From 2e22e0bb4ded5874566c15ecdfb696d5e3ce2f25 Mon Sep 17 00:00:00 2001 From: M1000fr Date: Mon, 2 Dec 2024 16:57:20 +0100 Subject: [PATCH] refactor: Update JWTStrategy to extend PassportStrategy with "jwt" name --- src/modules/auth/strategy/jwt.strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/auth/strategy/jwt.strategy.ts b/src/modules/auth/strategy/jwt.strategy.ts index cc43689..fc7e2d9 100644 --- a/src/modules/auth/strategy/jwt.strategy.ts +++ b/src/modules/auth/strategy/jwt.strategy.ts @@ -6,7 +6,7 @@ import { UserService } from "@Modules/user/user.service"; import { ConfigService } from "@nestjs/config"; @Injectable() -export class JWTStrategy extends PassportStrategy(Strategy) { +export class JWTStrategy extends PassportStrategy(Strategy, "jwt") { constructor( private readonly userService: UserService, configService: ConfigService,