Sha256: 10712a83532c57a5f33d29b28378db5172438d63f838690975508e96a368a834

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

module AuthN
  def self.config
    @config ||= Config.new Config::DEFAULTS
  end

  class Config < AltStruct
    DEFAULTS = {
      password_digest_method: :password_digest,
      account_klass: "Account",
      login_password_key: :password,
      model_id_method: :id,
      model_critera_method: :where,
      session_key_function: ->(klass) { :"session_#{klass}_id" }
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authn-2.4.0 lib/authn/config.rb