NAME
Twilio::Jwt::Grants::Grant - Base class of the grants of an access token
DESCRIPTION
A grant says what an Twilio::Jwt::AccessToken allows. Each subclass names its place in the token, and the fields it writes there. A field with no value is left out.
METHODS
new
my $grant = Twilio::Jwt::Grants::VideoGrant->new;
get_grant_key
Returns the name of the grant inside the token.
get_payload
Returns a hash reference with what the grant adds to the token.
payload_fields
Returns the fields that a subclass writes.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.