updateAttributes method
This is used by authenticated users to change a list of attributes
Implementation
Future<bool> updateAttributes(List<CognitoUserAttribute> attributes) async {
if (_signInUserSession == null || !_signInUserSession!.isValid()) {
throw Exception('User is not authenticated');
}
final paramsReq = {
'AccessToken': _signInUserSession!.getAccessToken().getJwtToken(),
'UserAttributes': attributes,
};
await client!.request('UpdateUserAttributes', paramsReq);
return true;
}