I attempting to implement Stripe Connect in my Rails 6 app.
I can successfully redirect the User to Stripe on-boarding.

I'm using the `omniauth-stripe-connect gem`

I'm getting `undefined method` update\_attributes' for nil:NilClass`for the`if @user.update\_attributes({` line

The error that I'm getting is after the `User` has completed `Stripe On-boarding` I redirect them to my application. Below is my `OmniauthCallbacksController`:

```
class PetProviders::OmniauthCallbacksController < Devise::OmniauthCallbacksController

  # You should also create an action method in this controller like this:
  # def twitter
  # end

  def stripe_connect
    auth_data = request.env["omniauth.auth"]
    @user = current_pet_provider
    if @user.update_attributes({
      provider_name: auth_data.provider,
      uid: auth_data.uid,
      access_code: auth_data.credentials.token,
      publishable_key: auth_data.info.stripe_publishable_key,
    })
      sign_in_and_redirect @user, event: :authentication
      flash[:notice] = "Stripe Account Created and Connected" if is_navigational_format?
    else
      session["devise.stripe_connect_data"] = request.env["omniauth.auth"]
      redirect_to root_path
    end
  end

  # More info at:
  # https://github.com/plataformatec/devise#omniauth

  # GET|POST /resource/auth/twitter
  # def passthru
  #   super
  # end

  # GET|POST /users/auth/twitter/callback
  # def failure
  #   super
  # end

  # protected

  # The path used when OmniAuth fails
  # def after_omniauth_failure_path_for(scope)
  #   super(scope)
  # end
end

```

I suspect that `current_pet_provider` is empty!

How do I get `current_pet_provider` within `OmniauthCallbacksController` ?