Sha256: eadb9d3941fb12eac10445b4d093f279762e24344abcbefd5e7eb211d283ee3a

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

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

  class Config
    include AltStruct::M
    DEFAULTS = {
      account_klass: :Account,
      password_digest_method: :password_digest,
      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-1.0.0 lib/authn/config.rb