spotify-web-api-node
                                
                                
                                
                                    spotify-web-api-node copied to clipboard
                            
                            
                            
                        refreshAccessToken not FOUND
The function for getting refresh tokens is not available in the library.
spotify-web-api-node refreshAccessToken()
Kindly check.
Hi, you can refresh an access token with refreshAccessToken() but you will have to set the refresh token first with setRefreshToken(refresh_token)
I have the same issue, v5.0.2. I've set the refresh token. you can see the code and error below.
    let spotifyApi = new SpotifyWebApi();
    spotifyApi.setRefreshToken(refreshToken);
    spotifyApi.setClientId(process.env.REACT_APP_CLIENT_ID);
    spotifyApi.setClientSecret(process.env.REACT_APP_CLIENT_SECRET);
    return spotifyApi.refreshAccessToken()
                     .then(_ => spotifyApi.getAccessToken());
Uncaught TypeError: spotifyApi.refreshAccessToken is not a function
@KaranLala were you able to resolve this? I'm having the same problem.
@iamendy were you able to resolve this?
@kyds3k Were you able to? Same issue here
@GraysonCAdams Do you mind sharing your implementation?
@kyds3k Were you able to? Same issue here
Nope :-( not yet