Commit 9073350 1 parent 953708b commit 9073350 Copy full SHA for 9073350
File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
17
17
// accessToken 위치
18
18
jwtFromRequest : ExtractJwt . fromAuthHeaderAsBearerToken ( ) ,
19
19
ignoreExpiration : false ,
20
- secretOrKey : configService . get ( ' JWT_SECRET' ) ,
20
+ secretOrKey : process . env . JWT_SECRET ,
21
21
} ) ;
22
22
}
23
23
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ import { Request } from 'express';
9
9
export class JwtKakaoStrategy extends PassportStrategy ( Strategy , 'kakao' ) {
10
10
constructor ( private configService : ConfigService ) {
11
11
super ( {
12
- clientID : configService . get ( ' KAKAO_ID' ) , //.env파일에 들어있음\
13
- clientSecret : configService . get ( ' KAKAO_SECRET' ) , //.env파일에 들어있음
14
- callbackURL : configService . get ( ' KAKAO_REDIRECT' ) , //.env파일에 들어있음
12
+ clientID : process . env . KAKAO_ID , //.env파일에 들어있음\
13
+ clientSecret : process . env . KAKAO_SECRET , //.env파일에 들어있음
14
+ callbackURL : process . env . KAKAO_REDIRECT , //.env파일에 들어있음
15
15
passReqToCallback : true ,
16
16
} ) ;
17
17
}
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ import { Request } from 'express';
9
9
export class NaverStrategy extends PassportStrategy ( Strategy , 'naver' ) {
10
10
constructor ( private configService : ConfigService ) {
11
11
super ( {
12
- clientID : configService . get ( ' NAVER_ID' ) ,
13
- clientSecret : configService . get ( ' NAVER_SECRET' ) ,
14
- callbackURL : configService . get ( ' NAVER_REDIRECT' ) ,
12
+ clientID : process . env . NAVER_ID ,
13
+ clientSecret : process . env . NAVER_SECRET ,
14
+ callbackURL : process . env . NAVER_REDIRECT ,
15
15
passReqToCallback : true ,
16
16
} ) ;
17
17
}
You can’t perform that action at this time.
0 commit comments