renewToken method

  1. @override
Future<DataResult<NUIAuthLoginResp>> renewToken({
  1. required NUIAuthRenewTokenReq request,
})

Implementation

@override
Future<DataResult<NUIAuthLoginResp>> renewToken({required NUIAuthRenewTokenReq request}) async{
  final resp = await _getWeb().doPOST(
      url: "auth/token/renew",
      bodyEnt: request,
      entity: NUIAuthStandardRespEnt(NUIEntType.OBJECT, (value) => asObject(NUIAuthLoginRespEnt(), value))
  );
  return _dataResultFactory.defineDataResult<NUIAuthLoginResp>(resp);
}