spotify-web-api-node icon indicating copy to clipboard operation
spotify-web-api-node copied to clipboard

RefreshAccessToken not a function

Open NealMatta opened this issue 6 years ago • 4 comments

I am using Vue so I needed to install a different package while working but I thought it was pretty similar functionality. Everything was working but when I tried to use the 'refreshAccessToken' function, I was met with an error stating "TypeError: vue__WEBPACK_IMPORTED_MODULE_1__.default.spotify.refreshAccessToken is not a function"

Am I missing something?

NealMatta avatar Sep 24 '19 20:09 NealMatta

Hi, i'm struggling with the same error, were you able to solve it?

LipeBromf avatar Mar 07 '21 20:03 LipeBromf

Bump. Currently getting the same error with Sveltekit.

noahsemus avatar Feb 21 '22 21:02 noahsemus

Same issue here. Is this not possible to use in a frontend?

GraysonCAdams avatar Mar 15 '23 03:03 GraysonCAdams

The @types/spotify-web-api-node does not match up with the current state of the package.

https://github.com/thelinmichael/spotify-web-api-node/blob/be15f1c742b35134ce5bd35521d8bf1ab1ba67cf/src/spotify-web-api.js#L12-L86

In other words, that function does not actually exist.

GraysonCAdams avatar Mar 15 '23 03:03 GraysonCAdams