Sha256: c2c5acb930db659a3a05a6884e183a990e00e888d86abe57abb41c28216f6438

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

module Tinytokenauth

  class Configuration
    attr_accessor :user_class, :token_validity_hours, :token_auto_renew_hours, :token_secret, :cookie_name

    def initialize
      @user_class = User
      @token_validity_hours = 24
      @token_auto_renew_hours = 4
      @token_secret = Rails.application.credentials.secret_key_base
      @cookie_name = 'ttauth'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tinytokenauth-rails-0.1.9 lib/tinytokenauth/configuration.rb
tinytokenauth-rails-0.1.8 lib/tinytokenauth/configuration.rb
tinytokenauth-rails-0.1.7 lib/tinytokenauth/configuration.rb
tinytokenauth-rails-0.1.6 lib/tinytokenauth/configuration.rb
tinytokenauth-rails-0.1.5 lib/tinytokenauth/configuration.rb