Sha256: 759d20200cece7403f9d3cf5970d10026d5a44c6e8923dd5f637695b4ece830f

Contents?: true

Size: 329 Bytes

Versions: 15

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

module ShopifyApp
  class InMemoryUserSessionStore < InMemorySessionStore
    class << self
      def store(session, user)
        id = super
        repo[user.id.to_s] = session
        id
      end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
shopify_app-22.5.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.5.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.4.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.3.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.3.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.2.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.2.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.1.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.0.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-22.00.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-21.10.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-21.9.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-21.8.1 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-21.8.0 lib/shopify_app/session/in_memory_user_session_store.rb
shopify_app-21.7.0 lib/shopify_app/session/in_memory_user_session_store.rb