Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

286
Visualizações
how can i run hosted project in local, used redirect uri,clientid after making an account on spotify but getting error
i cloned https://github.com/espitiaandres/studyfi and i want to run it in local. i have made my account on spotify developer and took redirecturi and client id and wrote in config.js but localhost is refusing to connect


    ```const authEndpoint = "http://accounts.spotify.com/authorize";
    // const clientId = "53bcecd410634483b53########";
    const clientId = "e6690d4f0b734a6c89336c#######";
    const redirectUri = "http://localhost:8080/callback";                    // dev redirectUri
    // const redirectUri = "https://www.andres-espitia.com/studyfi/";      // prod redirectUri
    const scopes = [
        "user-top-read",
        "user-read-currently-playing",
        "user-read-playback-state",
        "user-modify-playback-state",
        "playlist-read-private"
    ];
    
    export { 
        authEndpoint, 
        clientId, 
        redirectUri, 
        scopes 
    }```
in app.js the following code is written
app.js

    const getCurrentlyPlaying = (token) => {
        axios({
            method: 'get',
            url: 'https://api.spotify.com/v1/me/player',
            headers: {
                'Authorization': `Bearer ${token}`
            }
        }).then(({ data }) => {
            if(!data) {
                setData(data);
                return;
            }
token.js 

in token.js the following code is written there is probably authorization error too export const setToken = (token) => ({ type: 'SET_TOKEN', token });

export const startSetToken = (token = "") => {
    return (dispatch, getState) => {
        return dispatch(setToken(token));
    }
}

getting this link after clicking login http://localhost:8080/callback#access_token=BQBR6jxgnBEWYYIuRjsvnxkQ-RqzVFRZ7JR1Q_9F3XWHhExQ7EaWTTj1z5ZzHXu2onRE8xRvRBHWz0qCB5Z776gHfejbXogxvkwaXDQgZGGFb4ezvHSM_87Ofy9wfZJD1_DZkehZ9NeEMehXeDShZaOVFo4DL-hMfaWNcDa9oQTQz-tJ-7UZcjiw&token_type=Bearer&expires_in=3600

how do i fix this and make this project run on my local

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda