jwt_claims v0.0.4 JwtClaims.Claim.Sub

Subject

see http://tools.ietf.org/html/rfc7519#section-4.1.2

Summary

Functions

Predicate to reject a sub claim that does not match the expected subject

Functions

reject?(sub, options)

Predicate to reject a sub claim that does not match the expected subject

Example

iex> Sub.reject?("subject", %{sub: "other subject"})
true

Returns true or false