View Source ExTwilio.JWT.Grant protocol (ExTwilio v0.10.0)

A protocol for converting grants into JWT claims.

Summary

Types

t()

All the types that implement this protocol.

Functions

The attributes of the claim.

The type of claim this grant is.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

The attributes of the claim.

Examples

def attrs(grant) do
  %{"name" => grant.name}
end

The type of claim this grant is.

Examples

def type(_grant), do: "chat"