verifyAttribute method

Future<bool> verifyAttribute(
  1. dynamic attributeName,
  2. dynamic confirmationCode
)

This is used to confirm an attribute using a confirmation code

Implementation

Future<bool> verifyAttribute(attributeName, confirmationCode) async {
  _signInUserSessionCheck();

  final paramsReq = {
    'AttributeName': attributeName,
    'Code': confirmationCode,
    'AccessToken': _signInUserSession!.getAccessToken().getJwtToken(),
  };
  await client!.request('VerifyUserAttribute', paramsReq);

  return true;
}