Sha256: 764056c79e2e191e64d4a236b85bc2b0206a32ae918f53541284b718352bc356

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

module CurrentSession
  #
  # Base class for providing auth methods
  #
  class Auth
    class_attribute :user_class

    def initialize(request)
      @request = request
    end
    attr_reader :request

    def auth
      request.env["omniauth.auth"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
current_session-0.1.4 lib/current_session/auth.rb