How can i delete the session stored by twitch after log in by my twitch api script? or log out button?


#1

Hi, how can i delete the session stored on the twitch web?
when user log in my web with twitch they log in in the twitch.tv stored the sesison on the browser, so if they want to add another account they cant because the session, how can i avoid they log in on twitch.tv when they log in on my web?, or delete the session stored by twitch maybe??


Delete this post
#2

As per

Try the force_verify parameter


#3

added to true and now i have redirect me to the autorization web, but still logged with the last account, there isnt way to store the session? this is the only way ?


#4

Thats correct. Then the user can choose if they wish to logout of Twitch and into a new Twitch account or not.


#5

yes i know, ut this is the only way?
there isnt a way for init the curl like a new session every time ?


#6

Not sure what curl has to do with it…

Step One of the oAuth is a redirect to Twitch, which is not performed via cURL. Just answered this one your other thread at

https://discuss.dev.twitch.tv/t/is-possile-change-the-redirect-name-generated-by-the-api/18942/8

I don’t think you understand how oAuth operates clearly enough.

You the application creator have zero control over Twitch session management as that is handled by the Twitch website, so no, your server/application/website, cannot log the user out of another website.


#7

yes i get the url getted by curl_get info for my a hred, ty anyway i am going to use force_verify


#8

YOU SHOULD NOT BE DOING THAT
YOU SHOULD NOT BE DOING THAT
YOU SHOULD NOT BE DOING THAT

As per the documentation:

Step 1 DOES NOT mention cURL

You SHOULD do the following:

<a href="https://id.twitch.tv/oauth2/authorize?client_id=<your client ID>&redirect_uri=<your registered redirect URI>&response_type=code&scope=<space-separated list of scopes>&force_verify=true">Login with Twitch</a>

And substitute in the relevant items between the < >

YOU SHOULD NOT BE USING CURL AT ALL AT THIS POINT
YOU SHOULD NOT BE USING CURL AT ALL AT THIS POINT
YOU SHOULD NOT BE USING CURL AT ALL AT THIS POINT


#9

okey xdddd i am going to use ahref with the manual link but with curl i had the same result, ty anyway, if u want delete the post now! :smiley:


#10

We don’t delete, we leave the solution up to help others whom may have a similar issue