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

[IS-01-Q] 로그인 로직 변경 #9

Open
hyerichung opened this issue Apr 17, 2021 · 2 comments
Open

[IS-01-Q] 로그인 로직 변경 #9

hyerichung opened this issue Apr 17, 2021 · 2 comments

Comments

@hyerichung
Copy link
Collaborator

프론트에서 보낸 유저 정보만으로 db에 접근해 새로운 유저 생성이 가능한 이슈입니다.
해당 로직을 변경을

  1. 프론트에서 email, imageUrl, name으로만 request 하는 로직에서 -> google에서 받은 idToken를 서버로 request하고
  2. 서버는 프론트에서 받은 idToken을 verify하여 유저 정보를 얻어 기존 유저 체크 or 새로운 유저 생성하여 db에 저장을 하고
  3. 새로운 jwt 토큰을 secret, expire, payload와 함께 생성해서 프론트로 보내 이것을 앞으로 accessToken으로 사용하는 방법이 어떨지 제안드립니다.

현재는 postman 등으로 request 기본 정보만 입력하면 유저 등록이 가능해서 저희의 로직 변경이 필요하다고 생각이 듭니다.
의견 말씀해주시면 감사하겠습니당.. 모두 수고수고 감사합니다..! 🙇‍♀️

@Ha-Young
Copy link
Member

네넵 혜리님이 제안하신 이 방법이 맞는 것 같습니다...!

테스크 카드 다 하고 시간이 남는분이 빨리 투입해서 처리해야 될 것 같군요

@CHEWCHEWW
Copy link
Collaborator

프론트 단의 auth작업과 같이 마무리가 되어야겠네요..
로직 변경이 필요하다고 생각합니당

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

3 participants