Sha256: 85c1654180e41e3c2223b8705a7a300c8922673f30070f4f69a5feeb1696b86d

Contents?: true

Size: 336 Bytes

Versions: 20

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true
module ShopifyApp
  class InMemoryUserSessionStore < InMemorySessionStore
    class << self
      def store(session, user)
        id = super
        repo[user.shopify_user_id] = session
        id
      end

      def retrieve_by_shopify_user_id(user_id)
        repo[user_id]
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
ruby_shopify_app-1.3.3 lib/ruby_shopify_app/session/in_memory_user_session_store.rb
ruby_shopify_app-1.3.2 lib/ruby_shopify_app/session/in_memory_user_session_store.rb
ruby_shopify_app-1.3.1 lib/ruby_shopify_app/session/in_memory_user_session_store.rb
ruby_shopify_app-1.3.0 lib/ruby_shopify_app/session/in_memory_user_session_store.rb
ruby_shopify_app-1.2.0 lib/ruby_shopify_app/session/in_memory_user_session_store.rb
ruby_shopify_app-1.1.0 lib/ruby_shopify_app/session/in_memory_user_session_store.rb
ruby_shopify_app-1.0.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.1.3 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.1.2 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.1.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.1.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.0.4 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.0.3 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.0.2 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.0.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-18.0.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-17.2.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-17.2.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-17.1.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-17.1.0 lib/shopify_app/session/in_memory_user_session_store.rb