fix(users): sync google profile data to user records
Some checks failed
Backend CI/CD / test (push) Has been cancelled
Backend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-14 21:39:47 +03:30
parent 388d4e0e7f
commit 3019f59d3a
3 changed files with 86 additions and 7 deletions

View File

@@ -65,6 +65,7 @@ from apps.users.services.google_oauth import (
find_social_account_for_profile,
get_google_flow,
send_google_claim_otp,
sync_user_from_google_profile,
verify_google_claim,
)
@@ -190,6 +191,7 @@ class GoogleOAuthCallbackView(APIView):
social_account = find_social_account_for_profile(profile)
if social_account:
sync_user_from_google_profile(social_account.user, profile)
flow_payload = build_authenticated_flow_payload(social_account.user)
else:
flow_payload = build_pending_google_flow_payload(profile)