【问题标题】:How to logout from spotify [Authentication Library] [spotify-android-auth-1.0]如何从 spotify [身份验证库] [spotify-android-auth-1.0] 注销
【发布时间】:2017-06-23 03:03:08
【问题描述】:

我们正在使用 Spotify 身份验证库 (spotify-auth:1.0.0-beta11)。该库包含一种从帐户中注销用户的方法。

AuthenticationClient.logout(context);

更新到最新版本的 SDK (spotify-android-auth-1.0) 后,此方法已消失,Authentication Guide 表示我们可以使用

AuthenticationClient#clearCookies

但是SDK中也没有这个方法。它甚至没有记录在Android SDK API References

问题是我们现在如何从 spotify 中注销?是否有机会将 logout() 方法带回 SDK?

【问题讨论】:

  • 你解决过这个问题吗?
  • 是的,你解决了吗?

标签: android authentication spotify


【解决方案1】:

根据您是否使用 Spotify 应用程序执行登录(如果您调用 AuthenticationClient.openLoginActivity),我知道的唯一方法是用户是否从 Spotify 应用程序本身注销并且您无法真正控制太多。 . 但是,如果您使用 WebView 进行身份验证,一种可能的方法是清除 Webview 的 cookie,理论上这应该可以工作,尽管我还没有测试过自己。

【讨论】:

    猜你喜欢
    • 2017-10-31
    • 2023-04-04
    • 2020-07-05
    • 2022-08-04
    • 2020-06-18
    • 2014-10-30
    • 1970-01-01
    • 1970-01-01
    • 2014-08-10
    相关资源
    最近更新 更多