fix(users): sync google profile data to user records
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user