How to remove access token from uber API while log

2019-06-26 04:07发布

I am doing integrate uber sdk using oAuth2Client in ios.I got access token using " https://login.uber.com/oauth/v2/token" but when I was trying to remove token using "https://login.uber.com/oauth/revoke" I got response code "200" but access token not be nill so I am not able to redirect on login screen.enter image description hereand I directly redirect into enter image description here

If anyone do uber integration in ios application.Please help me!!

Thanks in advance!!

1条回答
【Aperson】
2楼-- · 2019-06-26 04:31

Calling POST /oauth/revoke invalidates the access_token, refresh_token pair that you have for that user.

However, that user is probably still logged into Uber.com and has an active & valid session with a cookie in the browser.

You probably do not want to log the user out of the browser session, but if you did want to you could direct them to https://riders.uber.com/logout

查看更多
登录 后发表回答