Skip to content

Commit 8985990

Browse files
fix: change 'token' to 'accessToke'n for [TokenWithRefreshOptions] struct
1 parent ef6f91a commit 8985990

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export class Client {
242242
*/
243243
private async _init(options: ClientOptions) {
244244
if (!options.token) throw new SpotifyAPIError('No token was provided in [ClientOptions]');
245+
245246
if (typeof options.token == "string") {
246247
if (options.refreshToken) console.trace("[SpotifyClientWarn]: You have provided a token and used `refreshToken` option. Try to provide clientID, clientSecret or user authenication details.");
247248
this.token = options.token;

0 commit comments

Comments
 (0)