Module: Devise::JWT::RevocationStrategies::Null

Defined in:
lib/devise/jwt/revocation_strategies/null.rb

Overview

This strategy is just a null object pattern strategy, so it does not revoke anything

Class Method Summary collapse

Class Method Details

.jwt_revoked?(_payload, _user) ⇒ Boolean

Returns:

  • (Boolean)

See Also:

  • Warden::JWTAuth::Interfaces::RevocationStrategy#jwt_revoked?


12
13
14
# File 'lib/devise/jwt/revocation_strategies/null.rb', line 12

def self.jwt_revoked?(_payload, _user)
  false
end

.revoke_jwt(_payload, _user) ⇒ Object

See Also:

  • Warden::JWTAuth::Interfaces::RevocationStrategy#revoke_jwt


17
# File 'lib/devise/jwt/revocation_strategies/null.rb', line 17

def self.revoke_jwt(_payload, _user); end