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...
Can't find a movie or TV show? Login to create it.
ต้องการให้คะแนนหรือเพิ่มรายการนี้ไปยังรายการหรือไม่
ไม่ใช่สมาชิกเหรอ
Reply by robbie3999
on August 15, 2023 at 5: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.