Skip to Content
0
Jun 04 at 08:18 AM

Android BTP SDK - How to logout for a user?

122 Views

Hello,

As I tried the way mentioned in the document. But it is not effective as expected, is it still accessible by logging out with certain request?

And I tried to get the same cookieJar with the ClientProvider.

val request = Request.Builder()
    .post("".toRequestBody(null))
    .url(hostUrl + "/mobileservices/sessions/logout")
    .build()
CookieManager.getInstance().removeAllCookies(null);
ClientProvider.get().newCall(request).enqueue(object : Callback {...}