Set Access Token

You can change the access token used by an existing client via the Client.setAccessToken method.

const token = await getToken();
const client = new Client(token.access_token);

const newToken = await refreshToken();
client.setAccessToken(newToken.access_token);

Notice that something is missing? Found a typo? Think something's incomplete? Or think that something can be explained better? Feel free to open a pull request or submit an issue on the library's Github repository .