Skip to content

Commit

Permalink
feat: v9.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scientific-dev committed May 31, 2022
1 parent 2c384ab commit b5484eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Version history of spotify-api.js since v4.0.5.

---

## v9.2.1

- fix(refreshToken): fix refresh token regeneration using only `refreshToken` field. [#83](https://github.com/spotify-api/spotify-api.js/issues/83#issuecomment-1140212527)

**Released:** 31st May 2022<br/>
**Status:** Recommended to use<br/>

---

## v9.2.0

- fix(refreshToken): fix [Client.refreshFromMeta] error. [#83](https://github.com/spotify-api/spotify-api.js/issues/83#issuecomment-1122299829)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spotify-api.js",
"version": "9.2.0",
"version": "9.2.1",
"description": "A complete node js wrapper of spotify api with oauth support",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class Client {
this.refreshMeta = options.token;

if (options.userAuthorizedToken) this.user = await new UserClient(this).patchInfo();
} else if ('redirectURL' in options.token) {
} else if (('redirectURL' in options.token) || ('refreshToken' in options.token)) {
const context = await this.auth.getUserToken(options.token as GetUserTokenOptions);

this.refreshMeta = options.token;
Expand Down

0 comments on commit b5484eb

Please sign in to comment.