ExTwilio v0.7.0 ExTwilio.JWT.Grant protocol View Source

A protocol for converting grants into JWT claims.

Link to this section Summary

Functions

The attributes of the claim

The type of claim this grant is

Link to this section Types

Link to this section Functions

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"