UNPKG

@aws-amplify/core

Version:
1 lines 902 B
{"version":3,"file":"haveCredentialsChanged.mjs","sources":["../../../src/utils/haveCredentialsChanged.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Utility for determining if credentials have changed.\n *\n * @internal\n */\nexport const haveCredentialsChanged = (cachedCredentials, credentials) => {\n return (cachedCredentials.accessKeyId !== credentials.accessKeyId ||\n cachedCredentials.sessionToken !== credentials.sessionToken ||\n cachedCredentials.secretAccessKey !== credentials.secretAccessKey);\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,sBAAsB,GAAG,CAAC,iBAAiB,EAAE,WAAW,KAAK;AAC1E,IAAI,QAAQ,iBAAiB,CAAC,WAAW,KAAK,WAAW,CAAC,WAAW;AACrE,QAAQ,iBAAiB,CAAC,YAAY,KAAK,WAAW,CAAC,YAAY;AACnE,QAAQ,iBAAiB,CAAC,eAAe,KAAK,WAAW,CAAC,eAAe,EAAE;AAC3E;;;;"}