Skip to content

Commit d55603b

Browse files
committed
remove redundant code in jwt strategy
1 parent 0069760 commit d55603b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/users/auth/jwt-strategy.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
1414
}
1515

1616
async validate(payload: JwtPayload, done: VerifiedCallback) {
17-
console.log('ahoi');
18-
console.log(await this.usersService.findAll());
19-
console.log('nii');
2017
const user = await this.usersService.getUserByEmail(payload.email);
2118
if (!user) {
2219
return done(new HttpException({}, HttpStatus.UNAUTHORIZED), false);

0 commit comments

Comments
 (0)