Always authenticated : false

hey,

why do i get this error? i’m trying to init Twitch but the response is always that. i’m using the js sdk.

and it is not possible to get a streams-list. i get this error: Failed to load resource: the server responded with a status of 400 (Bad Request)

my redireced uri is localhost.
because it is running on my laptop(xampp)

here is my code

< script src="//code.jquery.com/jquery.min.js">
< script src=“https://ttv-api.s3.amazonaws.com/twitch.min.js”>
< script src="/dev/js/twitch.js">
< script>Twitch.init({clientId: ‘5dzn1kp5c9qqz03rg8f17qp656fcv6h’}, function(error, status) {
if(error)
{
console.log(error);

}
if(status.authenticated)
{
    isInit=true;
    console.log(status);
}});
Twitch.api({method: 'streams', params: {game:'Diablo III', limit:3} }, function(error, list) {
     console.debug(list);});



</script>

The JavaScript SDK you’re loading from ttv-api is outdated. I would recommend that you download the latest from GitHub and try that.

1 Like

thank you.

but
i downloaded this https://github.com/justintv/twitch-js-sdk repo.
and added/switch my code.

but i will get the same issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.