Greetings, I am trying to login into my app and then I am redirected to **https://www.themoviedb.org/auth/access?request_token={request_token}**
but after approving the token I am not able to redirect back.
import axios from "axios";
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://www.themoviedb.org/auth/access?request_token={request}&redirect_to = https:{URL}'
headers: { }
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Please let me know what am I doing wrong...
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por robbie3999
el 15 de agosto de 2023 a las 17:48
Hi @saif.azamkhan77@gmail.com, I don't think you are using redirect_to properly.
In V3 authentication, the format is as shown in step 2 here.
In V4 authentication, the redirect is passed in the body of the request as shown here.
In any event, it looks like you have spaces around the "=" in redirect_to = url, which won't work either.