Commit f79aca3 1 parent 82dcb8a commit f79aca3 Copy full SHA for f79aca3
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 15
15
"format" : " prettier --w **/*.ts" ,
16
16
"format:check" : " prettier --c **/*.ts" ,
17
17
"lint" : " eslint . --ext .ts --ignore-pattern dist/" ,
18
+ "lint:fix" : " eslint . --ext .ts --ignore-pattern dist/ --fix" ,
18
19
"test" : " NODE_ENV=test jest" ,
19
20
"test:watch" : " NODE_ENV=test jest --watch" ,
20
21
"test:cov" : " NODE_ENV=test jest --coverage" ,
Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
13
13
( request : Request ) => {
14
14
const token = request ?. cookies ?. Authentication ;
15
15
if ( ! token ) {
16
- throw new UnauthorizedException ( '인증 토큰이 없습니다. 로그인이 필요합니다.' ) ;
16
+ throw new UnauthorizedException (
17
+ '인증 토큰이 없습니다. 로그인이 필요합니다.' ,
18
+ ) ;
17
19
}
18
20
if ( token === '' ) {
19
- throw new UnauthorizedException ( '빈 인증 토큰이 제공되었습니다. 유효한 토큰이 필요합니다.' ) ;
21
+ throw new UnauthorizedException (
22
+ '빈 인증 토큰이 제공되었습니다. 유효한 토큰이 필요합니다.' ,
23
+ ) ;
20
24
}
21
25
return token ;
22
26
} ,
You can’t perform that action at this time.
0 commit comments