Skip to content

Commit

Permalink
Merge pull request #76 from Boost-Coder/feature/AddUserId-#75
Browse files Browse the repository at this point in the history
[#75] 로그인 성공시 userId 같이 반환
  • Loading branch information
koomin1227 authored Apr 17, 2024
2 parents cb9beb3 + be87fd5 commit a4190b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AuthService {
}
const accessToken = this.generateAccessToken(user.userId);
const refreshToken = this.generateRefreshToken(user.userId);
return { accessToken, refreshToken, isMember };
return { accessToken, refreshToken, isMember, userId: user.userId };
}

isMember(user: User) {
Expand Down Expand Up @@ -148,7 +148,6 @@ export class AuthService {
}
}


public async checkNicknameDuplicate(nickname: string) {
const isExist = await this.userService.checkNicknameDuplicate(nickname);

Expand Down

0 comments on commit a4190b7

Please sign in to comment.