Removing instagram login page cookie in rails app

In my rails application, I use oauth to access user profile data. The fact is that when the instagram login page pops up, the user must enter their login information, the cookie will be saved on my machine. Is there a way to DELETE this cookie (obviously not manually)? I ask about this because when the oauth page is called again, this cookie saved in my browser automatically subscribes to the user. This became a nuisance for my project. I do not want this to happen, I want to display the same login page again.

+5
source share
1 answer

I assume that you want to register the user from instagram, as well as your application. To do this, you can send your browser to https://instagram.com/accounts/logout/ . I saw how it was used as the URL of the image or loaded into a zero iframe size. I suspect the second option is the best option.

Thus, this will require re-registering the login a second time, but it will not require them to re-authorize your application.

+7
source

All Articles