Closed infinityzero closed 8 years ago
Yes, that makes sense. I will look into it soon.
After more consideration I think it would be best to leave this functionality as it is.
It is not vital that you successfully revoke the tokens at the end point, just that you clear them locally will be enough for the times where the async http calls fails. Therefore you should just take the user to the login screen directly after calling ConnectSdk.logout()
.
We can call
ConnectSdk.logout()
to log out which is making two HTTP requests to revoke both access token and refresh token but callback feature is not exist when two HTTP requests is finished.My app needs to listen logout completion callback to make some actions such as navigate to login screen when success or prompt to error message when failed.
Could you please add for logout completion callback?