Module: Devise::JWT::RevocationStrategies::JTIMatcher
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise/jwt/revocation_strategies/jti_matcher.rb
Overview
This strategy must be included in the user model, and requires that it has a ‘jti` column. It adds the value of the `jti` column as the `jti` claim in dispatched tokens.
In order to tell whether a token is revoked, it just compares both ‘jti` values. On revocation, it changes column value so that the token is no longer valid.
Instance Method Summary collapse
-
#jwt_payload ⇒ Object
Warden::JWTAuth::Interfaces::User#jwt_payload.
Instance Method Details
#jwt_payload ⇒ Object
Warden::JWTAuth::Interfaces::User#jwt_payload
39 40 41 |
# File 'lib/devise/jwt/revocation_strategies/jti_matcher.rb', line 39 def jwt_payload { 'jti' => jti } end |