chore(repo): fix

This commit is contained in:
Francesco Spilla 2025-03-17 12:29:21 +01:00
parent d707e14a8b
commit bfd25acd5b
3 changed files with 8313 additions and 6507 deletions

View File

@ -18,7 +18,7 @@ export class JwtRefreshTokenAuthStrategy extends PassportStrategy(Strategy, 'jwt
async validate(request: FastifyRequest, payload: TokenPayload) {
const refreshToken = (request.headers?.authorization as string| undefined)?.replace('Bearer', '')?.trim() ?? '';
const account = this.usersAuthService.getUserByIdAndRefreshTokenPair(payload.sub, refreshToken);
const account = await this.usersAuthService.getUserByIdAndRefreshTokenPair(payload.sub, refreshToken);
if (!account) throw new UnauthorizedException('Refresh Token Guard');
return account;
}

View File

@ -94,5 +94,6 @@
"typescript": "~5.7.3",
"typescript-eslint": "^8.23.0",
"webpack-cli": "^5.1.4"
}
},
"packageManager": "pnpm@9.14.1+sha512.7f1de9cffea40ff4594c48a94776112a0db325e81fb18a9400362ff7b7247f4fbd76c3011611c9f8ac58743c3dc526017894e07948de9b72052f874ee2edfdcd"
}

14321
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff