Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Porblem with access token

Porblem with access token

Plan

Premium

Country

Greece

Device

Samsung A52s

 

My Question or Issue

I am developing an app with React-native and i need to use the spotify API. Even though I authorise the app to use my account i don't get back an access token.

Reply
3 Replies

You can find only the client id and client secret there. You can also add redirect uris there.

The next step in getting an access token, you can find here: https://developer.spotify.com/documentation/web-api/concepts/authorization

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

I have already seen the website. I have added to my code this part 

class AuthenticationHandler {
  constructor() {
    this.spotifyAuthConfig = {
      clientId: "[client id]",
      clientSecret: "[clientsecret]",
      redirectUrl: "[redirect uri]",
      scopes: [
        "playlist-read-private",
        "playlist-modify-public",
        "playlist-modify-private",
        "user-library-read",
        "user-library-modify",
        "user-top-read",
      ],
      serviceConfiguration: {
        authorizationEndpoint: "https://accounts.spotify.com/authorize",
        tokenEndpoint: "https://accounts.spotify.com/api/token",
      },
    };
  }
And nothing happens. Can you help me?

I can only redirect you to https://developer.spotify.com/documentation/web-api/tutorials/code-flow

I haven't used JavaScript in combination with the Spotify Web API before.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts

Type a product name