Module: Devise::JWT

Extended by:
Dry::Configurable
Defined in:
lib/devise/jwt.rb,
lib/devise/jwt/railtie.rb,
lib/devise/jwt/version.rb,
lib/devise/jwt/test_helpers.rb,
lib/devise/jwt/mapping_inspector.rb,
lib/devise/jwt/defaults_generator.rb,
lib/devise/jwt/revocation_strategies.rb,
lib/devise/jwt/revocation_strategies/null.rb,
lib/devise/jwt/revocation_strategies/denylist.rb,
lib/devise/jwt/revocation_strategies/allowlist.rb,
lib/devise/jwt/revocation_strategies/jti_matcher.rb

Overview

JWT extension for devise

Defined Under Namespace

Modules: RevocationStrategies, TestHelpers Classes: DefaultsGenerator, MappingInspector, Railtie

Constant Summary collapse

VERSION =
'0.11.0'

Class Method Summary collapse

Class Method Details

.forward_to_warden(setting, value) ⇒ Object



29
30
31
32
33
# File 'lib/devise/jwt.rb', line 29

def self.forward_to_warden(setting, value)
  default = Warden::JWTAuth.config.send(setting)
  Warden::JWTAuth.config.send("#{setting}=", value || default)
  Warden::JWTAuth.config.send(setting)
end