Partial token shape returned by AniList's token endpoint. Mirrors the structure used by the exchangeToken helper.

interface TokenResponse {
    access_token: string;
    token_type: string;
    expires_in: number;
    refresh_token?: string;
}

Properties

access_token: string
token_type: string
expires_in: number
refresh_token?: string