module JwtClaims::Claim::Jti

JWT ID @see tools.ietf.org/html/rfc7519#section-4.1.7

Public Instance Methods

reject?(jti, options = {}) click to toggle source

@param jti [String] a unique identifier for the JWT @param options [Hash] (key jti:) expected JWT ID to match with claim @return [true, false] whether to reject the claim

# File lib/jwt_claims/claim/jti.rb, line 14
def reject?(jti, options = {})
  expected_jti = options.fetch(:jti, nil)
  !StringOrUri.present_and_equal?(jti, expected_jti)
end