UNPKG

@aws-amplify/auth

Version:
1 lines 1.18 kB
{"version":3,"file":"errorHelpers.mjs","sources":["../../../../../src/providers/cognito/tokenProvider/errorHelpers.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createAssertionFunction, } from '@aws-amplify/core/internals/utils';\nexport var TokenProviderErrorCode;\n(function (TokenProviderErrorCode) {\n TokenProviderErrorCode[\"InvalidAuthTokens\"] = \"InvalidAuthTokens\";\n})(TokenProviderErrorCode || (TokenProviderErrorCode = {}));\nconst tokenValidationErrorMap = {\n [TokenProviderErrorCode.InvalidAuthTokens]: {\n message: 'Invalid tokens.',\n recoverySuggestion: 'Make sure the tokens are valid.',\n },\n};\nexport const assert = createAssertionFunction(tokenValidationErrorMap);\n"],"names":[],"mappings":";;AAAA;AACA;AAEU,IAAC;AACX,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB;AACrE,CAAC,EAAE,sBAAsB,KAAK,sBAAsB,GAAG,EAAE,CAAC,CAAC;AAC3D,MAAM,uBAAuB,GAAG;AAChC,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,GAAG;AAChD,QAAQ,OAAO,EAAE,iBAAiB;AAClC,QAAQ,kBAAkB,EAAE,iCAAiC;AAC7D,KAAK;AACL,CAAC;AACW,MAAC,MAAM,GAAG,uBAAuB,CAAC,uBAAuB;;;;"}