Module: JwtClaims::Claim::Sub
- Defined in:
- lib/jwt_claims/claim/sub.rb
Overview
Subject
Class Method Summary collapse
-
.reject?(sub, options = {}) ⇒ true, false
Whether to reject the claim.
Class Method Details
.reject?(sub, options = {}) ⇒ true, false
Returns whether to reject the claim.
14 15 16 17 |
# File 'lib/jwt_claims/claim/sub.rb', line 14 def reject?(sub, = {}) expected_subject = .fetch(:sub, nil) !StringOrUri.present_and_equal?(sub, expected_subject) end |