logout method

Future<void> logout()

Implementation

Future<void> logout() async {
  return apiGet("/access/logout").then((res) {
    _session = null;
    // Notify session has been terminated/cancelled/deleted
    _sessionController.add(null);
    storageProvider.removeSession();
  });
}