File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,15 @@ Version history of spotify-api.js since v4.0.5.
4
4
5
5
---
6
6
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
+
7
16
## v9.2.0
8
17
9
18
- fix(refreshToken): fix [ Client.refreshFromMeta] error. [ #83 ] ( https://github.com/spotify-api/spotify-api.js/issues/83#issuecomment-1122299829 )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " spotify-api.js" ,
3
- "version" : " 9.2.0 " ,
3
+ "version" : " 9.2.1 " ,
4
4
"description" : " A complete node js wrapper of spotify api with oauth support" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ export class Client {
255
255
this . refreshMeta = options . token ;
256
256
257
257
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 ) ) {
259
259
const context = await this . auth . getUserToken ( options . token as GetUserTokenOptions ) ;
260
260
261
261
this . refreshMeta = options . token ;
You can’t perform that action at this time.
0 commit comments