getLoginHistory static method

Future<AuthResult> getLoginHistory(
  1. int page,
  2. int limit, [
  3. bool? success,
  4. String? start,
  5. String? end,
])

get login history.

Implementation

static Future<AuthResult> getLoginHistory(int page, int limit,
    [bool? success, String? start, String? end]) async {
  String successStr = success == null ? '' : '&success=' + success.toString();
  String startStr = start == null ? '' : "&start=" + start;
  String endStr = end == null ? '' : "&end=" + end;

  final Result result = await get('/api/v3/get-my-login-history?appId=' +
      Authing.sAppId +
      '&page=' +
      page.toString() +
      '&limit=' +
      limit.toString() +
      successStr +
      startStr +
      endStr);
  AuthResult authResult = AuthResult(result);
  return authResult;
}