Skip to content

updateToken

This method refreshes the Bearer token used for API calls to TheTVDB API.

Parameters

ParamsTypeRequiredDescription
tokenstringYesThe new token for making API calls

Example

import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');
client.updateToken('new access token');