How to log out of the instagram API?

前端 未结 2 1225
遥遥无期
遥遥无期 2021-01-29 01:28

The instagram API authentication page does not have any information on how to log out a user: On an iOS app using the API, how am I supposed to allow users to log out?

2条回答
  •  时光说笑
    2021-01-29 02:15

    To logout the user you should only delete the token. If the user doesn't want your app to access their data they will cancel your app access.

    If you want to provide a way for the user to logout from your app, you can do it on your login implementation (if you have a backend, of course), otherwise just send the user back to the login screen and delete the token.

提交回复
热议问题