Class: JWTKeeper::Configuration
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- JWTKeeper::Configuration
- Defined in:
- lib/jwt_keeper/configuration.rb
Constant Summary collapse
- DEFAULTS =
{ algorithm: 'HS512', secret: nil, expiry: 24.hours, issuer: nil, audience: nil, redis_connection: nil, version: nil, cookie_lock: false, cookie_secure: true, cookie_domain: :all }.freeze
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Configuration
constructor
Creates a new Configuration from the passed in parameters.
Constructor Details
#initialize(params = {}) ⇒ Configuration
Creates a new Configuration from the passed in parameters
19 20 21 |
# File 'lib/jwt_keeper/configuration.rb', line 19 def initialize(params = {}) super(DEFAULTS.merge(params)) end |