lib/knock.rb in knock-1.1.0 vs lib/knock.rb in knock-1.2.0

- old
+ new

@@ -9,9 +9,12 @@ self.token_audience = nil mattr_accessor :token_secret_signature_key self.token_secret_signature_key = -> { Rails.application.secrets.secret_key_base } + mattr_accessor :current_user_from_token + self.current_user_from_token = -> (claims) { User.find claims['sub'] } + # 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