backend/app/controllers/api/v1/omniauth_callbacks_controller.rb
# Override this to set image attribute properly.
# devise_token_auth uses 'image' for the attribute name.
Override this to set image attribute properly.
devise_token_auth uses 'image' for the attribute name.
Override this to set image attribute properly . devise_token_auth uses ' image ' for the attribute name .
def assign_provider_attrs(user, auth_hash)
    user.assign_attributes({
      nickname: auth_hash['info']['nickname'],
      name: auth_hash['info']['name'],
      avatar_url: get_large_image(auth_hash['info']['image']),
      email: auth_hash['info']['email']
    })
  end
def assign_provider_attrs ( user , auth_hash ) user . assign_attributes ( { nickname : auth_hash [ 'info' ] [ 'nickname' ] , name : auth_hash [ 'info' ] [ 'name' ] , avatar_url : get_large_image ( auth_hash [ 'info' ] [ 'image' ] ) , email : auth_hash [ 'info' ] [ 'email' ] } ) end
Override this to set image attribute properly.
Override this to set image attribute properly .
user
auth_hash