getLoginHistory static method
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;
}