logout

@GET(value = "logout")
abstract suspend fun logout(): Response<Unit>

Logout user Performs a user logout, clearing the session and invalidating the access token. Works similarly to /invalidate, but simply as a GET call. Responses:

  • 200: Success. The user was logged out. This is the only valid status code from the logout endpoint. Anything else indicates internal server problems.

Return

Unit