ios - 注销时如何从 uber API 中删除访问 token ?

标签 ios swift uber-api

我正在 ios 中使用 oAuth2Client 集成 uber sdk。我使用 “https://login.uber.com/oauth/v2/token ”,但当我尝试使用“https://login.uber.com/oauth/revoke ”删除 token 时,我得到了响应代码“200”,但访问 token 不是 null,所以我无法在登录屏幕上重定向。 enter image description here和 我直接重定向到 enter image description here

如果有人在 ios 应用程序中进行 super 集成。请帮助我!!

提前致谢!

最佳答案

调用 POST/oauth/revoke 会使您为该用户拥有的 access_tokenrefresh_token 对无效。

但是,该用户可能仍登录到 Uber.com,并且在浏览器中使用 cookie 进行有效且有效的 session 。

您可能不想让用户退出浏览器 session ,但如果您确实想要,您可以将他们引导至 https://riders.uber.com/logout

关于ios - 注销时如何从 uber API 中删除访问 token ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36623918/

相关文章:

uber-api - Webhook API 一次发送 "driver_canceled"和 "no_drivers_available"事件

iphone - UITableView - 滚动到下一页后,多个部分会重复(使用 Parse)

ios - UIApplicationWillEnterForegroundNotification与application:openURL:sourceApplication:annotation:

swift - CoreData 在用户数量较少时崩溃

swift - 如何正确删除一个Realm子对象?

android - 引起原因:com.android.dex.DexException:多个dex文件定义了Landroid/arch/core/internal/SafeIterableMap $ ListIterator;

curl - Uber API 不允许来自本地主机的请求

ios - VS 更新 17.1.3 后,Visual Studio 2022 Xamarin Remoted iOS 模拟器无法连接并显示黑屏

iOS8 : How to load xib from Dynamic Framework

ios - 如何从多个 VC 更新 Container ViewController?