@aws-amplify/auth
Version:
Auth category of aws-amplify
26 lines (24 loc) • 1.14 kB
JavaScript
;
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.listWebAuthnCredentials = listWebAuthnCredentials;
const core_1 = require("@aws-amplify/core");
const apis_1 = require("../../foundation/apis");
/**
* Lists registered credentials for an authenticated user
*
* @param {ListWebAuthnCredentialsInput} input The list input parameters including page size and next token.
* @returns Promise<ListWebAuthnCredentialsOutput>
* @throws - {@link AuthError}:
* - Thrown when user is unauthenticated
* @throws - {@link ListWebAuthnCredentialsException}
* - Thrown due to a service error when listing WebAuthn credentials
*/
async function listWebAuthnCredentials(input) {
// Resolve the global AmplifyContext fresh per operation so facade-only
// configuration is honored (the core `Amplify` singleton is never
// configured under the new facade).
return (0, apis_1.listWebAuthnCredentials)((0, core_1.getGlobalContext)(), input);
}
//# sourceMappingURL=listWebAuthnCredentials.js.map