def METHOD_NAME(self, user, claims):
    if not user.first_name_given:
        user.first_name_given = claims.get("given_name", "")
        user.save()
    if not user.last_name:
        user.last_name = claims.get("family_name", "")
        user.save()
    return user