UNPKG

@aws-amplify/auth

Version:
1 lines 1 kB
{"version":3,"file":"createOAuthError.mjs","sources":["../../../../../../src/providers/cognito/utils/oauth/createOAuthError.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { authErrorMessages } from '../../../../Errors';\nimport { AuthErrorCodes } from '../../../../common/AuthErrorStrings';\nimport { AuthError } from '../../../../errors/AuthError';\nexport const createOAuthError = (message, recoverySuggestion) => new AuthError({\n message: message ?? 'An error has occurred during the oauth process.',\n name: AuthErrorCodes.OAuthSignInError,\n recoverySuggestion: recoverySuggestion ?? authErrorMessages.oauthSignInError.log,\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AAIY,MAAC,gBAAgB,GAAG,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,SAAS,CAAC;AAC/E,IAAI,OAAO,EAAE,OAAO,IAAI,iDAAiD;AACzE,IAAI,IAAI,EAAE,cAAc,CAAC,gBAAgB;AACzC,IAAI,kBAAkB,EAAE,kBAAkB,IAAI,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;AACpF,CAAC;;;;"}