Sso overrides avatar

Here is my code:

sso.avatar_url = current_user.photo.thumb.url

A user logs into the discourse for the first time, their avatar does not change.

They log out.

Now on logging back in again, the avatar is changed.