Omniauth google

Please check   User#find_or_create_facebook_user  User#find_or_create_google_user
I have assumed that email exists and it is unique. Are provider and uid fields  irrelevant for us?