UNPKG

@aws-amplify/auth

Version:

Auth category of aws-amplify

1 lines • 1.4 kB
{"version":3,"file":"deleteWebAuthnCredential.mjs","sources":["../../../../src/client/apis/deleteWebAuthnCredential.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getGlobalContext } from '@aws-amplify/core';\nimport { deleteWebAuthnCredential as deleteWebAuthnCredentialFoundation } from '../../foundation/apis';\n/**\n * Delete a registered credential for an authenticated user by credentialId\n * @param {DeleteWebAuthnCredentialInput} input The delete input parameters including the credentialId\n * @returns Promise<void>\n * @throws - {@link AuthError}:\n * - Thrown when user is unauthenticated\n * @throws - {@link DeleteWebAuthnCredentialException}\n * - Thrown due to a service error when deleting a WebAuthn credential\n */\nexport async function deleteWebAuthnCredential(input) {\n // Resolve the global AmplifyContext fresh per operation so facade-only\n // configuration is honored (the core `Amplify` singleton is never\n // configured under the new facade).\n return deleteWebAuthnCredentialFoundation(getGlobalContext(), input);\n}\n"],"names":["deleteWebAuthnCredentialFoundation"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,eAAe,wBAAwB,CAAC,KAAK,EAAE;AACtD;AACA;AACA;AACA,IAAI,OAAOA,0BAAkC,CAAC,gBAAgB,EAAE,EAAE,KAAK,CAAC;AACxE;;;;"}