Code requiring an integration for Twitter are given access to make requests on the Users' behalf. All requests are automatically authenticated.

Here is an example of requesting the current User from Twitter:

const { identity } = this.identity;

const response = await window.casthub.fetch({
    integration: 'twitter',
    method: 'GET',
    url: 'users/show',
    data: {
        user_id: identity,

This supports the Twitter API.