You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 9, 2026. It is now read-only.
letspotifyApi=newSpotifyWebApi();spotifyApi.authorizationCodeGrant(`auth code`).then(function(data){console.log('Retrieved access token',data.body['access_token']);spotifyApi.setAccessToken(data.body['access_token']);returnspotifyApi.getMe();}).then(function(data){console.log('Retrieved data for '+data.body['display_name']);console.log('Image URL is '+data.body.images[0].url);console.log('This user has a '+data.body.product+' account');}).catch(function(err){console.log('Something went wrong:',err.message);});
am using this on multiuser project so it only use authorizationCodeGrant to fetch user why its giving
Somethingwentwrong: AnauthenticationerroroccurredwhilecommunicatingwithSpotify's Web API.
Details: invalid_client.
the readme file says client is optional
// credentials are optionalvarspotifyApi=newSpotifyWebApi({clientId: 'fcecfc72172e4cd267473117a17cbd4d',clientSecret: 'a6338157c9bb5ac9c71924cb2940e1a7',redirectUri: 'http://www.example.com/callback'});
am using this on multiuser project so it only use authorizationCodeGrant to fetch user why its giving
the readme file says client is optional
but actually they are required how do i fix this