How does the Uber Mobile SDK handle renewing access token?
I don’t see there is explicit way that SDK provides for developer to renew access token manually but I’d like to do so.
Essentially, what I’m trying to doing is that my mobile app handles SSO and pass the access token to my server, Server would then use that to do all kinds of request with Uber directly.
But when it comes to managing the access token, I still prefer to let the mobile app to do it. Hence, I’d like to renew the access token whenever I deem necessary, so that I can always provide valid token to my server.
FYI: I’m authenticating using SSO(i.e Native )
You can instantiate a RidesClient
and call refreshAccessToken(usingRefreshToken:completion:)
https://github.com/uber/rides-ios-sdk/blob/master/source/UberRides/RidesClient.swift#L537