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

[BUG] 구글유저의 삭제로직 호출 안됨 #266

Open
silverzoo opened this issue Dec 9, 2024 · 1 comment
Open

[BUG] 구글유저의 삭제로직 호출 안됨 #266

silverzoo opened this issue Dec 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@silverzoo
Copy link
Contributor

silverzoo commented Dec 9, 2024

문제

오어스유저의 탈퇴후 재로그인시에는 = 다시 회원가입 이라는 의미이기 때문에 새롭게 인증허용 페이지가 나와야함.
즉, 구글연동 해제후, 새로 구글연동 토큰발급을 위한 과정이 필요하다는 의미.
그런데 뭔가 기존유저의 재로그인처럼 동작함(인증허용 페이지가 나오지 않음. 마치 기존에 받았던걸 쓰는거마냥..탈퇴유전데..)

문제 원인

OauthService에서는 계속 CustomOauth2User 타입으로만 받게 되어있었기때문에 그 분기지점을 지나치치 못한것.
즉 분기처리를 했음에도 그냥 일반유저의 탈퇴처럼 진행되고 있었음
애초에 jwt 토큰 발급 이후로 CustomUserDetails 타입으로만 계속 인식되고 있기 때문에, deleteGoogleAccount()까지 갈 수가 없음
image
image
image
image

@silverzoo silverzoo changed the title [] [BUG] 구글유저의 삭제로직 호출 안됨 Dec 9, 2024
@silverzoo silverzoo self-assigned this Dec 9, 2024
@silverzoo silverzoo added the bug Something isn't working label Dec 9, 2024
@silverzoo silverzoo added this to the 4주차 스프린트 milestone Dec 9, 2024
@silverzoo
Copy link
Contributor Author

해결방법 from 코치님

  1. type을 받아서 나눠서 처리할 수 있다.
image
  1. api를 분리해도 된다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant