Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

중복 로그인 시에 exception을 잘못 던져요 #37

Open
2 tasks
T-H-42 opened this issue Aug 28, 2023 · 0 comments
Open
2 tasks

중복 로그인 시에 exception을 잘못 던져요 #37

T-H-42 opened this issue Aug 28, 2023 · 0 comments

Comments

@T-H-42
Copy link

T-H-42 commented Aug 28, 2023

@WEJOJO

//////////////중복 로그인 방지 위해 추가했습니다. 던지는 것 까지는 잘되는것 같은데, 프론트에서 받는 부분 구현되면 될 것 같습니다.-nhwang
// try {
// console.log('===========ttttttt2');
// if (user.socketid !== null)
// {
// console.log('===========ttttttt3',user.socketid);
// return new UnauthorizedException('Already Logged in');
// }
// }
// catch(error)
// {
// console.log('===========ttttttt4');
// return new UnauthorizedException('UnauthorizedException!');
// }

  • return말고 throw로 던져야 프론트에게 전달되는 것 같아요
  • 178번줄에서 throw 해도 catch에 잡혀서 최종적으로 184번줄의 exception을 던져줘요
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant