refactor: Update JWTStrategy to extend PassportStrategy with "jwt" name
This commit is contained in:
parent
a6d24cee9d
commit
2e22e0bb4d
@ -6,7 +6,7 @@ import { UserService } from "@Modules/user/user.service";
|
|||||||
import { ConfigService } from "@nestjs/config";
|
import { ConfigService } from "@nestjs/config";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class JWTStrategy extends PassportStrategy(Strategy) {
|
export class JWTStrategy extends PassportStrategy(Strategy, "jwt") {
|
||||||
constructor(
|
constructor(
|
||||||
private readonly userService: UserService,
|
private readonly userService: UserService,
|
||||||
configService: ConfigService,
|
configService: ConfigService,
|
||||||
|
Loading…
Reference in New Issue
Block a user