Skip to content

Commit f79aca3

Browse files
committed
npm run lint
1 parent 82dcb8a commit f79aca3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"format": "prettier --w **/*.ts",
1616
"format:check": "prettier --c **/*.ts",
1717
"lint": "eslint . --ext .ts --ignore-pattern dist/",
18+
"lint:fix": "eslint . --ext .ts --ignore-pattern dist/ --fix",
1819
"test": "NODE_ENV=test jest",
1920
"test:watch": "NODE_ENV=test jest --watch",
2021
"test:cov": "NODE_ENV=test jest --coverage",

src/auth/strategies/jwt.strategy.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
1313
(request: Request) => {
1414
const token = request?.cookies?.Authentication;
1515
if (!token) {
16-
throw new UnauthorizedException('인증 토큰이 없습니다. 로그인이 필요합니다.');
16+
throw new UnauthorizedException(
17+
'인증 토큰이 없습니다. 로그인이 필요합니다.',
18+
);
1719
}
1820
if (token === '') {
19-
throw new UnauthorizedException('빈 인증 토큰이 제공되었습니다. 유효한 토큰이 필요합니다.');
21+
throw new UnauthorizedException(
22+
'빈 인증 토큰이 제공되었습니다. 유효한 토큰이 필요합니다.',
23+
);
2024
}
2125
return token;
2226
},

0 commit comments

Comments
 (0)