Announcements

Help Wizard

Step 1

NEXT STEP

Server methods hidden from Express.js server

Server methods hidden from Express.js server

Hello, I am trying to build an app to experiment with the API but I have ran into some problems.

When I try to call methods like SpotifyWebApi.authorizationCodeGrant() or SpotifyWebApi.refreshAccessToken() I get unresolved functions error. Apparently this is a security feature explained here and here . My application is an express.js server using spotify-web-api-node library version 4.0.0. It says that you can access those methods if they are used from node and not browser, but isn't express server side? Any help appreciated.

 

"express": "^4.18.2",
"spotify-web-api-node": "^4.0.0"

 

 

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random