logout method

  1. @override
Future<DataResult<bool>> logout({
  1. required String accessToken,
})

Implementation

@override
Future<DataResult<bool>> logout({required String accessToken}) async{
  final resp = await _getWeb().doPOST(
      url: "auth/logout",
      headers: {"Authorization": accessToken },
      entity: NUIAuthStandardRespEnt(NUIEntType.MAP, (value) => asMap(value))
  );
  return _dataResultFactory.defineDataResult<bool>(resp, successDataIfNull: true, failureData: false);
  // _processResponseMessage(result);
  // return result.body ?? NUIStandardHttpResponse(success: false, message: "NUIAuthApi => logout Failed");
}