Log the current user out.
This call logs out the current user and clears their local access_token
.
import io.blockv.common.internal.net.rest.exception.BlockvException
//logout
blockv.getUserManager().logout()
Note: You can access the function through the UserManager
found in your blockv
singleton. See Getting Started
// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager()
.logout()
.subscribe(() -> {/*Success*/},
throwable -> {/*Failure*/});
Note, endpoints that require authentication (e.g. get user profile) will fail until the user has re-authenticated. Authentication is easily obtained by calling login.