Sha256: ef6bbb1ad4f9835a2cc319d20a1265cb35202aa7dc529f5c714c5d0620c2a450

Contents?: true

Size: 337 Bytes

Versions: 21

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

class Custom::OmniauthCallbacksController < DeviseTokenAuth::OmniauthCallbacksController
  def omniauth_success
    super do |resource|
      @omniauth_success_block_called = true unless resource.nil?
    end
  end

  def omniauth_success_block_called?
    @omniauth_success_block_called == true
  end
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
devise_token_auth-1.2.4 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.2.2 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.2.1 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.2.0 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.1.5 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
sidecar_token_auth-1.0.1 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.1.4 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth_multitenancy-1.1.3.2 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth_multitenancy-1.1.3.1 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth_multitenancy-1.1.3.alpha1 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise-tokens-1.0.4 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.1.3 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.1.2 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.1.1 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.1.0 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth_fork_dfabarbosa-1.0.0 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth_skycocker_fork-1.0.0 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.0.0 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.0.0.rc2 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
devise_token_auth-1.0.0.rc1 test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb