@aws-amplify/auth
Version:
Auth category of aws-amplify
1 lines • 1.31 kB
Source Map (JSON)
{"version":3,"file":"updateUserAttribute.mjs","sources":["../../../../../src/providers/cognito/apis/updateUserAttribute.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { updateUserAttributes } from './updateUserAttributes';\n/**\n * Updates user's attribute while authenticated.\n *\n * @param input - The UpdateUserAttributeInput object\n * @returns UpdateUserAttributeOutput\n * @throws - {@link UpdateUserAttributesException}\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nexport const updateUserAttribute = async (input) => {\n const { userAttribute: { attributeKey, value }, options, } = input;\n const output = await updateUserAttributes({\n userAttributes: { [attributeKey]: value },\n options,\n });\n return Object.values(output)[0];\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,mBAAmB,GAAG,OAAO,KAAK,KAAK;AACpD,IAAI,MAAM,EAAE,aAAa,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,OAAO,GAAG,GAAG,KAAK;AACtE,IAAI,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC;AAC9C,QAAQ,cAAc,EAAE,EAAE,CAAC,YAAY,GAAG,KAAK,EAAE;AACjD,QAAQ,OAAO;AACf,KAAK,CAAC;AACN,IAAI,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACnC;;;;"}