lib/jwt_keeper/token.rb in jwt_keeper-6.1.1 vs lib/jwt_keeper/token.rb in jwt_keeper-6.1.2

- old
+ new

@@ -61,9 +61,15 @@ # @return [void] def self.revoke(token_jti) Datastore.revoke(token_jti, JWTKeeper.configuration.expiry.from_now.to_i) end + # Checks if a web token has been revoked + # @return [Boolean] + def self.revoked?(token_jti) + Datastore.revoked?(token_jti) + end + # Easy interface for using the token's id # @return [String] token's uuid def id claims[:jti] end