getMFAOptions method

Future<List?> getMFAOptions()

This is used by an authenticated user to get the MFAOptions

Implementation

Future<List?> getMFAOptions() async {
  if (!(_signInUserSession != null && _signInUserSession!.isValid())) {
    throw Exception('User is not authenticated');
  }

  final paramsReq = {
    'AccessToken': _signInUserSession!.getAccessToken().getJwtToken(),
  };
  final userData = await client!.request('GetUser', paramsReq);

  return userData['MFAOptions'];
}