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

Auth/social login #24

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Auth/social login #24

wants to merge 3 commits into from

Conversation

cloNoey
Copy link
Collaborator

@cloNoey cloNoey commented Jan 19, 2025

  1. 소셜 로그인 구현
  • localhost:8000/auth/login -> 구글 로그인 진행.
    이어서 localhost:8000/auth/callback
    -> 로그인한 이메일이 userDB에 있는 경우, 1) 구글에서 넘겨준 user_info, 2) userDB - user_id/username/password, 3) is_created : false 를 response합니다.
    -> 로그인한 이메일이 userDB에 없는 경우, 새로운 user를 생성하여 userDB에 커밋한 후, 1) 구글에서 넘겨준 user_info, 2) userDB - user_id/username/password, 3) is_created : true 를 response합니다.
  1. 유저 모델 업데이트
  • 전화번호 nullable=True
  • social(Boolean) 추가

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

Successfully merging this pull request may close these issues.

1 participant