ExTwilio v0.8.1
ExTwilio.JWT.Grant protocol
View Source
A protocol for converting grants into JWT claims.
The attributes of the claim.
The type of claim this grant is.
The attributes of the claim.
Example
def attrs(grant) do
%{"name" => grant.name}
end
The type of claim this grant is.
Example
def type(_grant), do: "chat"