updateAttributes method

Future<bool> updateAttributes(
  1. List<CognitoUserAttribute> attributes
)

This is used by authenticated users to change a list of attributes If phone_number is changed it needs to be verified to be able to use it for MFA.

Implementation

Future<bool> updateAttributes(List<CognitoUserAttribute> attributes) async {
  _signInUserSessionCheck();

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

  return true;
}