getAttributeVerificationCode method

Future getAttributeVerificationCode(
  1. String attributeName
)

This is used to initiate an attribute confirmation request

Implementation

Future getAttributeVerificationCode(String attributeName) async {
  if (_signInUserSession == null || !_signInUserSession!.isValid()) {
    throw Exception('User is not authenticated');
  }

  final paramsReq = {
    'AttributeName': attributeName,
    'AccessToken': _signInUserSession!.getAccessToken().getJwtToken(),
  };

  return await client!.request('GetUserAttributeVerificationCode', paramsReq);
}