Sha256: d4facfed7d50ed47c4d6c9b98a495ea14406c9a2ddbb9447c8530aece51ac11e

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module CurrentSession
  #
  # Implementation of using UIDs as session tokens
  #
  class UidSession < Repository
    def find(&block)
      user_class.find_by(uid: session_token).try(&block)
    end

    def create(user)
      user.uid
    end

    def destroy
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
current_session-0.1.0 lib/current_session/uid_session.rb