Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Wafulah authored Jul 15, 2024
1 parent a73266e commit 14947ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_or_update_user(user_info):
"""
email = user_info.get('email')
first_name = user_info.get('given_name')
last_name = user_info.get('family_name')
last_name = user_info.get('family_name') or ""
sub = user_info.get('sub')

user, created = User.objects.update_or_create(
Expand Down

0 comments on commit 14947ef

Please sign in to comment.