Q&A

Cannot logout after use Line Login API?!

Is there a simple example to let users logout after OAuth login. I need to let users logout from web susscessfully. I did try the "Logging out users" accounding to the documents as following. However, it's not work. user will still in login status and can even open the "Line Store" with a login status!!?

curl -v -X POST https://api.line.me/oauth2/v2.1/revoke \
-H "Content-Type:application/x-www-form-urlencoded" \
-d "client_id={channel id}&client_secret={channel secret}&access_token={access token}"
  • 0
  • 1
  • 1405
  • twitter facebook

Hi what does the following command return after revoking?

curl -v -X GET 'https://api.line.me/oauth2/v2.1/verify?access_token={access token}'

if the returned messages include "error" and "revoked", your client should be logged out correctly.

  • 0
Are you sure? question.vm