Skip to content

Commit

Permalink
Merge pull request #83 from LocalMingle/dev
Browse files Browse the repository at this point in the history
[수정] ci 에러 로인해 다시 푸시
  • Loading branch information
HeeDragoN1123 authored Oct 24, 2023
2 parents 2add2a6 + d2dd18f commit 583b876
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/auth/auth.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
BadRequestException,
Injectable,
NotFoundException,
UnauthorizedException,
Expand All @@ -22,7 +21,6 @@ export class AuthService {
// 리팩토링 시 res 빼도 작동하는지 테스트
accessToken: string;
refreshToken: string;
userId: number;
}> {
// 1. 이메일이 일치하는 유저를 DB에서 찾기
const user = await this.usersService.findByEmail({ email });
Expand Down Expand Up @@ -58,7 +56,7 @@ export class AuthService {
},
});

return { accessToken, refreshToken, userId: user.userId };
return { accessToken, refreshToken };
}

getAccessToken({ user }): string {
Expand Down Expand Up @@ -100,7 +98,6 @@ export class AuthService {
async OAuthLogin({ req, res }): Promise<{
accessToken: string;
refreshToken: string;
// userId: number;
}> {
// 1. 회원조회
let user = await this.usersService.findByEmail({ email: req.user.email }); // user를 찾아서
Expand Down Expand Up @@ -133,7 +130,6 @@ export class AuthService {

console.log('로컬 엑세스 토큰', accessToken);
console.log('로컬 리프레시 토큰', refreshToken);
console.log(user.userId);

// 리다이렉션
res.redirect(
Expand Down

0 comments on commit 583b876

Please sign in to comment.