lib/jwt_keeper/configuration.rb in jwt_keeper-2.0.0 vs lib/jwt_keeper/configuration.rb in jwt_keeper-3.0.0

- old
+ new

@@ -5,11 +5,14 @@ secret: nil, expiry: 24.hours, issuer: 'api.example.com', audience: 'example.com', redis_connection: nil, - version: nil + version: nil, + cookie_lock: false, + cookie_secure: true, + cookie_domain: :all }.freeze # Creates a new Configuration from the passed in parameters # @param params [Hash] configuration options # @return [Configuration] @@ -22,9 +25,18 @@ { iss: JWTKeeper.configuration.issuer, # issuer aud: JWTKeeper.configuration.audience, # audience exp: JWTKeeper.configuration.expiry.from_now.to_i, # expiration time ver: JWTKeeper.configuration.version # Version + } + end + + # @!visibility private + def cookie_options + { + domain: JWTKeeper.configuration.cookie_domain, + secure: JWTKeeper.configuration.cookie_secure, + httponly: true } end end end