logout method
Logs out the current user.
Updated the local session as a non-logged in user through updateSession.
Implementation
@override
Future<RequestResponse<dynamic>> logout() async {
updateSession(loggedIn: false);
final RequestResponse<dynamic> response = await Request.initiateRequest(
url: config.hostUrl + '/api/method/frappe.handler.logout',
method: HttpMethod.GET);
return response;
}