Sha256: 5151cfdcea04ee087c846198abb789ac0e096a74787ca4eb423e84c26b9f8974

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

require "knock/engine"

module Knock

  mattr_accessor :token_lifetime
  self.token_lifetime = 1.day

  mattr_accessor :token_audience
  self.token_audience = nil

  mattr_accessor :token_secret_signature_key
  self.token_secret_signature_key = -> { Rails.application.secrets.secret_key_base }

  # Default way to setup Knock. Run rails generate knock_install to create
  # a fresh initializer with all configuration values.
  def self.setup
    yield self
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knock-1.1.0 lib/knock.rb
knock-1.1.0.rc1 lib/knock.rb