Grant resources with specific permissions and return a token.

        Args:
            auth: <cik>
            resource: Alias or ID of resource.
            permissions: permissions of resources.
            ttl: Time To Live.

def grant(self, auth, resource, permissions, ttl=None, defer=False):
        """ Grant resources with specific permissions and return a token.

        Args:
            auth: <cik>
            resource: Alias or ID of resource.
            permissions: permissions of resources.
            ttl: Time To Live.
        """
        args = [resource, permissions]
        if ttl is not None:
            args.append({"ttl": ttl})
        return self._call('grant', auth, args, defer)