Skip to content

Commit

Permalink
fix(backend-auth): fix environment variable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chownces committed Sep 7, 2023
1 parent 75917af commit 0002cc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/apps/auth/src/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class AuthService {
private verifyRefreshToken(refreshToken: string): JwtPayload {
try {
return this.jwtService.verify(refreshToken, {
secret: this.tokenConfig.accessTokenSecret,
secret: this.tokenConfig.refreshTokenSecret,
});
} catch (e) {
throw new HttpException('Invalid refresh token', 401);
Expand Down Expand Up @@ -77,7 +77,6 @@ export class AuthService {
);

if (!isValidRefreshToken) {
// TODO: How to 401 in upstream gateway microservice?
throw new HttpException('Invalid refresh token', 401);
}

Expand Down

0 comments on commit 0002cc7

Please sign in to comment.