Skip to content

Commit b5484eb

Browse files
feat: v9.2.1
1 parent 2c384ab commit b5484eb

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ Version history of spotify-api.js since v4.0.5.
44

55
---
66

7+
## v9.2.1
8+
9+
- fix(refreshToken): fix refresh token regeneration using only `refreshToken` field. [#83](https://github.com/spotify-api/spotify-api.js/issues/83#issuecomment-1140212527)
10+
11+
**Released:** 31st May 2022<br/>
12+
**Status:** Recommended to use<br/>
13+
14+
---
15+
716
## v9.2.0
817

918
- fix(refreshToken): fix [Client.refreshFromMeta] error. [#83](https://github.com/spotify-api/spotify-api.js/issues/83#issuecomment-1122299829)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spotify-api.js",
3-
"version": "9.2.0",
3+
"version": "9.2.1",
44
"description": "A complete node js wrapper of spotify api with oauth support",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class Client {
255255
this.refreshMeta = options.token;
256256

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

261261
this.refreshMeta = options.token;

0 commit comments

Comments
 (0)